aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-04 04:51:37 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-04 04:51:37 -0500
commit9083ed9355c34f40274c3d742ffd8746d5d6d504 (patch)
treedc70a81530b33b86b98c03a105d152245348251a /src
parentcb611cbd23e7cf63c9fed03732e7574394354623 (diff)
downloadbbj-9083ed9355c34f40274c3d742ffd8746d5d6d504.tar.gz
start python network client; fix auth resolution api responses
Diffstat (limited to 'src')
-rw-r--r--src/db.py4
-rw-r--r--src/schema.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/db.py b/src/db.py
index 5d53eb2..d41494b 100644
--- a/src/db.py
+++ b/src/db.py
@@ -365,9 +365,9 @@ def validate(keys_and_values):
elif key == "color":
- if color in range(0, 9):
+ if value in range(0, 6):
continue
raise BBJParameterError(
- "Color specification out of range (int 0-8)")
+ "Color specification out of range (int 0-6)")
return True
diff --git a/src/schema.py b/src/schema.py
index f2aadfb..a6b6d5f 100644
--- a/src/schema.py
+++ b/src/schema.py
@@ -67,7 +67,7 @@ def user_internal(
auth_hash, # string (sha256 hash)
quip, # string (possibly empty)
bio, # string (possibly empty)
- color, # int from 0 to 8
+ color, # int from 0 to 6
is_admin, # bool (supply as either False/True or 0/1)
created): # floating point unix timestamp (when user registered)
@@ -97,7 +97,7 @@ def user_external(
user_name, # string
quip, # string (possibly empty)
bio, # string (possibly empty)
- color, # int from 0 to 8
+ color, # int from 0 to 6
admin, # bool (can be supplied as False/True or 0/1)
created): # floating point unix timestamp (when user registered)
Un proyecto texto-plano.xyz