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?
|
||||
if (
|
||||
exists(target_path) and # exists
|
||||
item['time_updated'] == getmtime(target_path) and # mtime matches
|
||||
item['file_size'] == getsize(target_path) # filesize matches
|
||||
int(item['time_updated']) == int(getmtime(target_path)) and # mtime matches
|
||||
int(item['file_size']) == int(getsize(target_path)) # filesize matches
|
||||
):
|
||||
print(f"already satisfied", flush=True)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue