From 2c44745abcc5dffe0ef6e1b28d74ee6ec422e5c4 Mon Sep 17 00:00:00 2001 From: krateng Date: Fri, 31 Mar 2023 14:50:53 +0200 Subject: [PATCH] This is getting worse and worse --- maloja/database/__init__.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/maloja/database/__init__.py b/maloja/database/__init__.py index 0995496..184a437 100644 --- a/maloja/database/__init__.py +++ b/maloja/database/__init__.py @@ -1,6 +1,17 @@ # server from bottle import request, response, FormsDict + +# we're running an auxiliary task that doesn't require all the random background +# nonsense to be fired up +# this is temporary +# FIX YO DAMN ARCHITECTURE ALREADY +AUX_MODE = False +def set_aux_mode(): + global AUX_MODE + AUX_MODE = True + + # rest of the project from ..cleanup import CleanerAgent from .. import images @@ -45,14 +56,7 @@ dbstatus = { } -# we're running an auxiliary task that doesn't require all the random background -# nonsense to be fired up -# this is temporary -# FIX YO DAMN ARCHITECTURE ALREADY -AUX_MODE = False -def set_aux_mode(): - global AUX_MODE - AUX_MODE = True +