selfprivacy-rest-api/selfprivacy_api/utils/huey.py

9 lines
188 B
Python
Raw Normal View History

2022-08-02 22:50:16 +03:00
"""MiniHuey singleton."""
2022-08-11 02:36:36 +03:00
from huey import SqliteHuey
2022-08-02 22:50:16 +03:00
2022-08-11 02:36:36 +03:00
HUEY_DATABASE = "/etc/nixos/userdata/tasks.db"
# Singleton instance containing the huey database.
2022-08-13 00:29:18 +03:00
huey = SqliteHuey(HUEY_DATABASE)