Skip to content

Commit

Permalink
change branching
Browse files Browse the repository at this point in the history
  • Loading branch information
polyrand committed Sep 25, 2023
1 parent 4a85f26 commit 243dbab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions litequeue.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,10 @@ def prune(self, include_failed: bool = True):
self.conn.execute(
f"DELETE FROM Queue WHERE status IN ({MessageStatus.DONE.value}, {MessageStatus.FAILED.value})"
)
return
self.conn.execute(
f"DELETE FROM Queue WHERE status IN ({MessageStatus.DONE.value})"
)
return
else:
self.conn.execute(
f"DELETE FROM Queue WHERE status IN ({MessageStatus.DONE.value})"
)

def vacuum(self):
"""
Expand Down

0 comments on commit 243dbab

Please sign in to comment.