diff options
author | Robert Zorko <robertz@gurucue.com> | 2015-09-29 18:18:06 +0200 |
---|---|---|
committer | Robert Zorko <robertz@gurucue.com> | 2015-09-29 18:18:06 +0200 |
commit | d9a62c1cde08dd26d5675d46ff73f8ebb50a55ef (patch) | |
tree | dbfc205441fbed390c9936ee4ab32760d329238a | |
parent | 6aebfe21975bc74ec713e58339ae40715977e81f (diff) |
removed some debug output and actually enabled writing into the DB
-rw-r--r-- | server/handlers.py | 1 | ||||
-rw-r--r-- | server/user_session.py | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/server/handlers.py b/server/handlers.py index 698ca7d..90b8e0b 100644 --- a/server/handlers.py +++ b/server/handlers.py @@ -56,7 +56,6 @@ class Login(CodeqService): class Settings(CodeqService): def process(self, request): - print("Settings yay!") js = request.data settings = js.get('settings') if settings is None: diff --git a/server/user_session.py b/server/user_session.py index 3035d77..0fa7433 100644 --- a/server/user_session.py +++ b/server/user_session.py @@ -58,7 +58,6 @@ class UserSession(object): return self.settings def update_settings(self, newSettings): - #print("new:"+newSettings) self.settings.update(newSettings) def write_settings_to_db(self): @@ -66,9 +65,7 @@ class UserSession(object): try: cur = conn.cursor() try: - #cur.execute("UPDATE codeq_user SET gui_lang='"+self.settings.lang+"' WHERE id="+self.uid) - #print(self.settings) - print("UPDATE codeq_user SET gui_lang='" + self.settings['lang'] + "' WHERE id="+str(self.uid)) + cur.execute("UPDATE codeq_user SET gui_lang='" + self.settings['lang'] + "' WHERE id="+str(self.uid)) finally: cur.close() finally: |