🗝
summary refs log tree commit diff
path: root/conf_pain.py
blob: 85e7095877c537f929970ccc264d559db9d30948 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)