Example #1
0
 def delete(self, del_id):
     try:
         del_count = g_Member.delete().where(g_Member.uid == del_id)
         del_count.execute()
         return True
     except:
         return False
Example #2
0
 def delete_by_user_name(self, user_name):
     try:
         del_count = g_Member.delete().where(
             g_Member.user_name == user_name)
         del_count.execute()
         return True
     except:
         return False