Browse Source

code quality

Bastien Sevajol 6 years ago
parent
commit
a1747766be
No account linked to committer's email
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tracim/views/core_api/user_controller.py

+ 3 - 1
tracim/views/core_api/user_controller.py View File

@@ -40,9 +40,11 @@ class UserController(Controller):
40 40
             session=request.dbsession,
41 41
             config=app_config,
42 42
         )
43
+        
44
+        workspaces = wapi.get_all_for_user(request.candidate_user)
43 45
         return [
44 46
             WorkspaceInContext(workspace, request.dbsession, app_config)
45
-            for workspace in wapi.get_all_for_user(request.candidate_user)
47
+            for workspace in workspaces
46 48
         ]
47 49
 
48 50
     def bind(self, configurator: Configurator) -> None: