bigfix
This commit is contained in:
parent
70049aad14
commit
85ee243f8d
23
flake.lock
generated
Normal file
23
flake.lock
generated
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 0,
|
||||||
|
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
|
||||||
|
"path": "/nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@ -13,7 +13,7 @@
|
|||||||
pkgs.python3Packages.buildPythonApplication {
|
pkgs.python3Packages.buildPythonApplication {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
path = ./.;
|
path = ./tuhmayto/.;
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
};
|
};
|
||||||
build-system = [ pkgs.python3Packages.setuptools ];
|
build-system = [ pkgs.python3Packages.setuptools ];
|
||||||
|
|||||||
@ -83,7 +83,7 @@ def scrape_and_log(url: str) -> None:
|
|||||||
print(f"A log already exists for {latest_log} or later. Skipping new log.")
|
print(f"A log already exists for {latest_log} or later. Skipping new log.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if last_seen_time.hour == latest_log.hour:
|
if latest_log and last_seen_time.hour == latest_log.hour:
|
||||||
print(f"An entry for this hour already exists. Skipping new log.")
|
print(f"An entry for this hour already exists. Skipping new log.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user