瀏覽代碼

#185 fake-api redundancies fixed

Alexis CLEMENT 8 年之前
父節點
當前提交
031a61b7cc
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      tracim/tracim/controllers/workspace.py

+ 0 - 4
tracim/tracim/controllers/workspace.py 查看文件

@@ -69,10 +69,6 @@ class UserWorkspaceRestController(TIMRestController):
69 69
         show_archived = str_as_bool(kwargs.get('show_archived', ''))
70 70
         user = tmpl_context.current_user
71 71
 
72
-        current_user_content = Context(CTX.CURRENT_USER).toDict(user)
73
-        fake_api = Context(CTX.CURRENT_USER).toDict({
74
-            'current_user': current_user_content})
75
-
76 72
         unread_contents = ContentApi(user).get_last_unread(None,
77 73
                                                            ContentType.Any,
78 74
                                                            None)