diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-04 04:51:37 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-04 04:51:37 -0500 |
commit | 9083ed9355c34f40274c3d742ffd8746d5d6d504 (patch) | |
tree | dc70a81530b33b86b98c03a105d152245348251a /src | |
parent | cb611cbd23e7cf63c9fed03732e7574394354623 (diff) | |
download | bbj-9083ed9355c34f40274c3d742ffd8746d5d6d504.tar.gz |
start python network client; fix auth resolution api responses
Diffstat (limited to 'src')
-rw-r--r-- | src/db.py | 4 | ||||
-rw-r--r-- | src/schema.py | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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) |