Esempio n. 1
0
 def del_by_id(cls, poiId):
     try:
         Database.delete_one_by(Meishi, Meishi.poiId == poiId)
         Database.commit()
         return True
     except Exception as e:
         Database.rollback()
Esempio n. 2
0
 def del_by_id(cls, user_id):
     try:
         Database.delete_one_by(User, User.id == user_id)
         Database.commit()
         return True
     except Exception as e:
         Database.rollback()
         return False
Esempio n. 3
0
 def del_by_id(cls, file_id):
     try:
         Database.delete_one_by(Dianying, Dianying.file_id == file_id)
         Database.commit()
         return True
     except Exception as e:
         Database.rollback()
         return False
Esempio n. 4
0
 def del_by_hash_id(cls, hash_id):
     try:
         Database.delete_one_by(Programming, Programming.hash_id == hash_id)
         Database.commit()
         return True
     except Exception as e:
         Database.rollback()
         return False