Skip to content

Commit

Permalink
fix: add added 180 to tag (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Aug 30, 2024
1 parent 1932332 commit 5fcde29
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions qbtools/commands/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"trumped",
"torrent existiert nicht",
"other",
"i'm sorry dave, i can't do that", # weird stuff from racingforme
"002: invalid infohash",
]

Expand Down Expand Up @@ -95,10 +94,12 @@ def __init__(args, logger):
tags_to_add.append("added:24h")
elif diff.days <= 7:
tags_to_add.append("added:7d")
elif diff.days <= 29:
elif diff.days <= 30:
tags_to_add.append("added:30d")
elif diff.days > 29:
tags_to_add.append("added:>30d")
elif diff.days <= 180:
tags_to_add.append("added:180d")
elif diff.days > 180:
tags_to_add.append("added:>180d")

if args.last_activity:
last_activity = datetime.fromtimestamp(t.last_activity)
Expand All @@ -112,9 +113,9 @@ def __init__(args, logger):
tags_to_add.append("activity:7d")
elif diff.days <= 30:
tags_to_add.append("activity:30d")
elif diff.days <= 179:
elif diff.days <= 180:
tags_to_add.append("activity:180d")
elif diff.days > 179:
elif diff.days > 180:
tags_to_add.append("activity:>180d")

if args.sites:
Expand Down

0 comments on commit 5fcde29

Please sign in to comment.