예제 #1
0
 def by_id(cls, user_id):
     return Database.get_one_by(User, User.id == user_id)
예제 #2
0
 def by_name(cls, username):
     return Database.get_one_by(User, User.username == username)
예제 #3
0
 def by_id(cls, poiId):
     return Database.get_one_by(Meishi, Meishi.poiId == poiId)
예제 #4
0
 def by_id(cls, file_id):
     return Database.get_one_by(Dianying, Dianying.file_id == file_id)
예제 #5
0
 def by_hash_id(cls, hash_id):
     return Database.get_one_by(Programming, Programming.hash_id == hash_id)