mirror of
https://git.mia.jetzt/scrubber
synced 2024-11-24 06:17:23 -07:00
15 lines
414 B
Python
15 lines
414 B
Python
|
import math
|
||
|
from datetime import UTC, datetime, timedelta
|
||
|
|
||
|
from com import FilterableNote
|
||
|
from sec import connect, tokens
|
||
|
|
||
|
user_id = "9gszslkcdfnomssj"
|
||
|
token = tokens["pain"]
|
||
|
api = "https://void.rehab/api/"
|
||
|
|
||
|
def criteria(root: FilterableNote) -> bool:
|
||
|
# if it's more than two months old, delete
|
||
|
# return (datetime.now(UTC) - root.when).days > 60
|
||
|
return (datetime.now(UTC) - root.when).days > (12 * 30)
|