aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar Choom 2022-12-26 16:30:51 -0300
committerLibravatar Choom 2022-12-26 22:40:49 -0300
commitc78796fe7fb6c266d858ff02d0ca557825d425a8 (patch)
treebee3a7d4186d5cbeb47522cc4a77fa14c6ea9cb0 /cgi
parentc837f7a872969186a2cb63a1f6dbe6e5b9c1eaef (diff)
downloadweabot-c78796fe7fb6c266d858ff02d0ca557825d425a8.tar.gz
weabot-c78796fe7fb6c266d858ff02d0ca557825d425a8.tar.xz
weabot-c78796fe7fb6c266d858ff02d0ca557825d425a8.zip
Moviendo variables de framework a manage
Diffstat (limited to 'cgi')
-rw-r--r--cgi/framework.py5
-rw-r--r--cgi/manage.py6
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