This commit is contained in:
esef committed 2026-08-16 01:19:11 +03:00
1 parent d405b23f04
commit 2ce4a2a263
1 file changed
+4 -1
+4 -1
View File
@@ -151,9 +151,12 @@ class Bucketlist(commands.Cog):
int(uid.strip()) for uid in raw.split(",") if uid.strip() int(uid.strip()) for uid in raw.split(",") if uid.strip()
} }
# --- why the fuck did i change this back in the day? ---
self._hash = os.getenv("BUCKETLIST_HASH", "").strip()
def _items_ref(self, db): def _items_ref(self, db):
"""Return the Firestore collection ref for bucketlist items.""" """Return the Firestore collection ref for bucketlist items."""
return db.collection("bucketlist") return db.collection("bucketlist_data").document(self._hash).collection("items")
def _check(self, user_id: int) -> bool: def _check(self, user_id: int) -> bool:
"""Return True if the user is authorised to modify the bucketlist.""" """Return True if the user is authorised to modify the bucketlist."""