Workspaces page working
This commit is contained in:
@@ -23,3 +23,11 @@ class Workspace(Base, TimestampsMixin):
|
||||
@property
|
||||
def users(self):
|
||||
return set(role.user for role in self.roles)
|
||||
|
||||
@property
|
||||
def user_count(self):
|
||||
return len(self.users)
|
||||
|
||||
@property
|
||||
def task_order(self):
|
||||
return {"number": "task-order-number"}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
from flask import Blueprint, render_template, request as http_request
|
||||
|
||||
from atst.domain.workspaces import Members, Projects, Workspaces
|
||||
from flask import Blueprint, render_template, request as http_request, g
|
||||
|
||||
from atst.domain.workspaces import Workspaces
|
||||
|
||||
bp = Blueprint("workspaces", __name__)
|
||||
|
||||
|
Reference in New Issue
Block a user