fix checks: cast to int

This commit is contained in:
cronekorkn 2025-10-30 09:36:29 +01:00
parent 8ebcd48eaf
commit 8c45dd23f1

View file

@ -44,8 +44,8 @@ for item in response.json()['response']['publishedfiledetails']:
# skip item? # skip item?
if ( if (
exists(target_path) and # exists exists(target_path) and # exists
item['time_updated'] == getmtime(target_path) and # mtime matches int(item['time_updated']) == int(getmtime(target_path)) and # mtime matches
item['file_size'] == getsize(target_path) # filesize matches int(item['file_size']) == int(getsize(target_path)) # filesize matches
): ):
print(f"already satisfied", flush=True) print(f"already satisfied", flush=True)
continue continue