diff options
author | mia <mia@mia.jetzt> | 2024-09-04 04:47:13 -0700 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-09-04 04:47:13 -0700 |
commit | bb8a48fd4d85ba4f8224c68aaaf9069d5d79dae2 (patch) | |
tree | bdb0654c667f37c69addc9efd1e29b9cfe710c51 /conf_pain.py | |
parent | 81071e8feefdf815e29318226c668664e1706da2 (diff) | |
download | scrubber-bb8a48fd4d85ba4f8224c68aaaf9069d5d79dae2.tar.gz scrubber-bb8a48fd4d85ba4f8224c68aaaf9069d5d79dae2.zip |
desktop changes
Diffstat (limited to 'conf_pain.py')
-rw-r--r-- | conf_pain.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/conf_pain.py b/conf_pain.py new file mode 100644 index 0000000..85e7095 --- /dev/null +++ b/conf_pain.py @@ -0,0 +1,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) |