k3nny
737f9bea38
All checks were successful
lint / docker (push) Successful in 9m14s
fix code passing ruff linter pre-commit ruff pre-commit ruff format
10 lines
344 B
Python
Executable File
10 lines
344 B
Python
Executable File
import os
|
|
import sys
|
|
|
|
from huey.contrib.sql_huey import SqlHuey
|
|
from huey.storage import SqliteStorage
|
|
|
|
tisbackup_root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
|
|
tasks_db = os.path.join(tisbackup_root_dir, "tasks.sqlite")
|
|
huey = SqlHuey(name="tisbackups", filename=tasks_db, always_eager=False, storage_class=SqliteStorage)
|