From bb8a48fd4d85ba4f8224c68aaaf9069d5d79dae2 Mon Sep 17 00:00:00 2001 From: mia Date: Wed, 4 Sep 2024 04:47:13 -0700 Subject: desktop changes --- conf_pain.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 conf_pain.py (limited to 'conf_pain.py') 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) -- cgit 1.4.1