fix checks: cast to int
This commit is contained in:
parent
8ebcd48eaf
commit
8c45dd23f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue