From 8c45dd23f1a751c3854aa6cdaeceaab2795c301e Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Thu, 30 Oct 2025 09:36:29 +0100 Subject: [PATCH] fix checks: cast to int --- steam-workshop-download | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steam-workshop-download b/steam-workshop-download index 83ee6c1..93c4c4f 100755 --- a/steam-workshop-download +++ b/steam-workshop-download @@ -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