@@ -177,7 +177,7 @@ def __init__(self):
177
177
self .aws_init = True
178
178
179
179
# Last timestamp we checked for an updated
180
- self .update_check_timestamp = config .get (
180
+ self .last_timestamp = config .getint (
181
181
'UPDATE' , 'timestamp' , fallback = None )
182
182
183
183
# Shared configuration
@@ -982,7 +982,7 @@ def set_shared(self):
982
982
983
983
# Ask user if they want to move the local list of files and directories that were archived to the shared directory
984
984
local_froster_archives_to_shared = inquirer .confirm (
985
- message = "Do you want to move the local list of files and directories that were archived to the shared directory?" , default = True )
985
+ message = "Do you want to copy the local list of files and directories that were archived to the shared directory?" , default = True )
986
986
987
987
# Move the local froster archives to shared directory
988
988
if local_froster_archives_to_shared :
@@ -1200,20 +1200,18 @@ def check_update(self):
1200
1200
'''Set the update check'''
1201
1201
1202
1202
try :
1203
- timestamp = time .time ()
1203
+ timestamp = int ( time .time () )
1204
1204
1205
- if hasattr (self , 'update_check_timestamp ' ) and self .update_check_timestamp is not None :
1205
+ if hasattr (self , 'last_timestamp ' ) and self .last_timestamp is not None :
1206
1206
# Check if last day was less than 86400 * 7 = (1 day) * 7 = 1 week
1207
- print (timestamp )
1208
- print (self .update_check_timestamp )
1209
- print (timestamp - self .update_check_timestamp )
1210
- if timestamp - self .update_check_timestamp < (86400 * 7 ):
1207
+ if timestamp - self .last_timestamp < (86400 * 7 ):
1211
1208
# Less than a week since last check
1212
1209
return False
1213
1210
1214
1211
# Set the update check flag in the config file
1215
1212
self .__set_configuration_entry (
1216
- 'UPDATE' , 'update_check_timestamp' , timestamp )
1213
+ 'UPDATE' , 'timestamp' , timestamp )
1214
+
1217
1215
return True
1218
1216
1219
1217
except Exception :
0 commit comments