Skip to content

Commit

Permalink
Update storages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiveknx authored Mar 8, 2022
1 parent 9e97431 commit 2052d9e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ def set(self, cl: Client) -> bool:
self.db.insert(Document({'sessionid': key, 'settings': json.dumps(cl.get_settings())}, doc_id=user_pkid))
return True

def set_custom(self, cl: Client, settings) -> bool:
def set_custom(self, user_pkid, settings) -> bool:
"""Set client settings
"""
key = parse.unquote(cl.sessionid.strip(" \""))
user_pkid = key.split(":")[0]

self.db.insert(Document({'sessionid': key, 'settings': settings}, doc_id=user_pkid))
return True

Expand Down

0 comments on commit 2052d9e

Please sign in to comment.