Преглед изворни кода

Closes #120: sqlite error when caldavzap try to GET calendar_config

Bastien Sevajol (Algoo) пре 9 година
родитељ
комит
e71c48d216
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tracim/tracim/model/auth.py

+ 1 - 1
tracim/tracim/model/auth.py Прегледај датотеку

268
         validity_seconds = CFG.get_instance().USER_AUTH_TOKEN_VALIDITY
268
         validity_seconds = CFG.get_instance().USER_AUTH_TOKEN_VALIDITY
269
 
269
 
270
         if not self.auth_token or not self.auth_token_created:
270
         if not self.auth_token or not self.auth_token_created:
271
-            self.auth_token = uuid.uuid4()
271
+            self.auth_token = str(uuid.uuid4())
272
             self.auth_token_created = datetime.utcnow()
272
             self.auth_token_created = datetime.utcnow()
273
             DBSession.flush()
273
             DBSession.flush()
274
             return
274
             return