소스 검색

#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)