예제 #1
0
파일: record.py 프로젝트: MrKiven/KT-Web
 def get(cls, todo_name):
     res = db.session.query(cls).\
         filter(cls.todo_name == todo_name).first()
     if res:
         return res.to_dict()
     raise NotFoundResourceException(
         NOT_FOUND_RESOURCE_MESSAGE.format(cls.__name__, todo_name))
예제 #2
0
파일: record.py 프로젝트: zzznn/KT-Web
 def get(cls, todo_name):
     res = db.session.query(cls).\
         filter(cls.todo_name == todo_name).first()
     if res:
         return res.to_dict()
     raise NotFoundResourceException(
         NOT_FOUND_RESOURCE_MESSAGE.format(cls.__name__, todo_name))