Skip to content

Commit

Permalink
Fix frontend update condition for time range
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinckel committed Nov 20, 2023
1 parent 90ac8c2 commit 0b2a079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def app_update(self, revision=None, force=False):
_diff = utils.DateTime.midnight()-utils.DateTime.now(sub=_config.app_update_install_hour)
else:
_diff = -1
if force is False and _diff and (_diff.seconds < 0 or _diff.seconds > 2*60*60):
if force is False and _diff and (_diff < 0 or _diff > 2*60*60):
return
_capability = frontend.Frontend.get().get_device().get_capability()
_config.app_update_check_date = None
Expand Down

0 comments on commit 0b2a079

Please sign in to comment.