Skip to content

Commit

Permalink
fix(tagging): they may be zero, so it needs to check as well
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Jan 5, 2025
1 parent e10be02 commit 644cd18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qbtools/commands/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def __init__(app, logger):

if app.expired and tracker and t.state_enum.is_complete:
if (
"required_seed_ratio" in tracker
tracker.get("required_seed_ratio")
and t.ratio >= tracker["required_seed_ratio"]
) or (
"required_seed_days" in tracker
tracker.get("required_seed_days")
and t.seeding_time >= utils.seconds(tracker["required_seed_days"])
):
tags_to_add.append("expired")
Expand Down

0 comments on commit 644cd18

Please sign in to comment.