Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Sep 13, 2024
1 parent 9b78eb6 commit beb69d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/classes/base/waiting_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,13 @@ def abort_for_maintenance(self):
logger.warning(f"Error when aborting WP. Skipping: {err}")

def refresh(self, worker=None):
logger.debug([self.n,worker,worker.extra_slow_worker if worker is not None else None])
if self.n > 0 and worker is not None and worker.extra_slow_worker is True:
self.expiry = get_extra_slow_expiry_date()
else:
new_expiry = get_expiry_date()
if self.expiry < new_expiry:
self.expiry = new_expiry
logger.debug([self.expiry,self.n,worker,worker.extra_slow_worker if worker is not None else None])
db.session.commit()

def is_stale(self):
Expand Down

0 comments on commit beb69d3

Please sign in to comment.