Add formulas to settings

This commit is contained in:
tcely authored and GitHub committed 2025-01-31 09:05:11 -05:00
1 parent 65873a5963
commit b66073dcd2
1 file changed
+6
+6
View File
@@ -188,6 +188,12 @@ except ImportError as e:
sys.stderr.write(f'Unable to import local_settings: {e}\n')
sys.exit(1)
# Formulas: Do not touch! Modify the inputs instead.
DOWNLOAD_MEDIA_DELAY = 60 + int(MAX_RUN_TIME / 20)
if BACKGROUND_TASK_ASYNC_THREADS > MAX_BACKGROUND_TASK_ASYNC_THREADS:
BACKGROUND_TASK_ASYNC_THREADS = MAX_BACKGROUND_TASK_ASYNC_THREADS
from .dbutils import patch_ensure_connection
patch_ensure_connection()