This commit is contained in:
Danilo Reyes 2024-12-06 12:39:35 -06:00
parent 70049aad14
commit 85ee243f8d
3 changed files with 25 additions and 2 deletions

23
flake.lock generated Normal file
View 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
}

View File

@ -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 ];

View File

@ -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