Esempio n. 1
0
 def updateTaskStatus(self, id, status):
     db_session.query(TaskEntity).filter(TaskEntity.id == id).update({'status_id': status})
     db_session.commit()
Esempio n. 2
0
 def insertOrUpdateTask(self, task):
     db_session.add(task)
     db_session.commit()
     return task.id
Esempio n. 3
0
 def deleteTask(self, id):
     db_session.query(TaskEntity).filter(TaskEntity.id == id).delete()
     db_session.commit()
     return id
Esempio n. 4
0
 def getHistory(self):
     db_session.flush()
     db_session.commit()
     return db_session.query(HistoryEntity).all()
Esempio n. 5
0
 def updateHistory(self, hEvent):
     db_session.add(hEvent)
     db_session.commit()
Esempio n. 6
0
 def getProjectHistory(self, pid):
     db_session.flush()
     db_session.commit()
     return db_session.query(HistoryEntity).filter(HistoryEntity.pid == pid).all()
Esempio n. 7
0
 def getUserHistory(self, uid):
     db_session.flush()
     db_session.commit()
     return db_session.query(HistoryEntity).filter(HistoryEntity.uid == uid).all()
Esempio n. 8
0
 def insertOrUpdateProject(self, project):
     db_session.add(project)
     db_session.commit()
     return project.pid