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