From c78796fe7fb6c266d858ff02d0ca557825d425a8 Mon Sep 17 00:00:00 2001 From: Choom Date: Mon, 26 Dec 2022 16:30:51 -0300 Subject: Moviendo variables de framework a manage --- cgi/framework.py | 5 ----- cgi/manage.py | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cgi/framework.py b/cgi/framework.py index 7894c16..796703e 100644 --- a/cgi/framework.py +++ b/cgi/framework.py @@ -17,11 +17,6 @@ from database import * ### Constants ### BIT = lambda x: 2 ** x -RB_FRONT = BIT(0) -RB_ALL = BIT(1) -RB_KAKO = BIT(2) -RB_HOME = BIT(3) - def setBoard(dir): """ Sets the board which the script is operating on by filling Settings._.BOARD diff --git a/cgi/manage.py b/cgi/manage.py index 4839b5e..cd00a07 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -861,6 +861,10 @@ def manage(self, path_split): if form_submitted: rebuild = 0 + RB_FRONT = BIT(0) + RB_ALL = BIT(1) + RB_KAKO = BIT(2) + RB_HOME = BIT(3) # Update board settings @@ -873,7 +877,7 @@ def manage(self, path_split): if board['name'] != self.formdata['name']: board['name'] = self.formdata['name'] - rebuild |= RB_BOARD + rebuild |= RB_ALL if board['board_type'] == 1: rebuild |= RB_KAKO -- cgit v1.2.1-18-gbd029