🗝
summary refs log tree commit diff
path: root/conf_pain.py
diff options
context:
space:
mode:
Diffstat (limited to 'conf_pain.py')
-rw-r--r--conf_pain.py14
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)