Move Projects and Environments into their own files
This commit is contained in:
13
atst/domain/projects.py
Normal file
13
atst/domain/projects.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from atst.database import db
|
||||
from atst.models.project import Project
|
||||
|
||||
|
||||
class Projects(object):
|
||||
@classmethod
|
||||
def create(cls, workspace, name, description):
|
||||
project = Project(workspace=workspace, name=name, description=description)
|
||||
|
||||
db.session.add(project)
|
||||
db.session.commit()
|
||||
|
||||
return project
|
||||
Reference in New Issue
Block a user