Skip to content

Commit

Permalink
remove old_tries
Browse files Browse the repository at this point in the history
probably no longer needed
  • Loading branch information
dwhswenson committed Aug 28, 2023
1 parent 67c288c commit c0722a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions exorcist/taskdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ def _task_row_update_statement(
is_checkout: bool = False,
max_tries: Optional[int] = None,
old_status: Optional[TaskStatus] = None,
old_tries: Optional[int] = None
) -> SQLStatement:
"""
Parameters
Expand Down Expand Up @@ -417,9 +416,6 @@ def _task_row_update_statement(
if old_status is not None:
stmt = stmt.where(self.tasks_table.c.status == old_status.value)

if old_tries is not None:
stmt = stmt.where(self.tasks_table.c.tries == old_tries)

# create a dict of values to update
values = {
'status': status,
Expand Down

0 comments on commit c0722a5

Please sign in to comment.