Skip to content

Commit 0b2a079

Browse files
committed
Fix frontend update condition for time range
1 parent 90ac8c2 commit 0b2a079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def app_update(self, revision=None, force=False):
202202
_diff = utils.DateTime.midnight()-utils.DateTime.now(sub=_config.app_update_install_hour)
203203
else:
204204
_diff = -1
205-
if force is False and _diff and (_diff.seconds < 0 or _diff.seconds > 2*60*60):
205+
if force is False and _diff and (_diff < 0 or _diff > 2*60*60):
206206
return
207207
_capability = frontend.Frontend.get().get_device().get_capability()
208208
_config.app_update_check_date = None

0 commit comments

Comments
 (0)