Removed username length max limit of 200
Renamed 2 functions to use underscores instead of camelCase
This commit is contained in:
parent
6e1357cb82
commit
9049af2a27
1 changed files with 3 additions and 3 deletions
6
mongo.py
6
mongo.py
|
@ -13,15 +13,15 @@ class Portfolio(Document):
|
|||
|
||||
|
||||
class Watchlist(Document):
|
||||
user = StringField(max_length=200, required=True)
|
||||
user = StringField(required=True)
|
||||
stocks = DictField(default={})
|
||||
|
||||
|
||||
def encodeKey(key):
|
||||
def encode_key(key):
|
||||
return key.replace(".", "\\u002e")
|
||||
|
||||
|
||||
def decodeKey(key):
|
||||
def decode_key(key):
|
||||
return key.replace("\\u002e", ".")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue