浏览代码

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

Bastien Sevajol (Algoo) 8 年前
父节点
当前提交
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