예제 #1
0
 def does_char_with_guid_exist(guid):
     """ Return whether or not a character with that GUID exists in DB. """
     return CharacterData.select().where(CharacterData.guid == guid).exists()
예제 #2
0
파일: manager.py 프로젝트: Shgck/DuratorEmu
 def does_char_with_guid_exist(guid):
     """ Return whether or not a character with that GUID exists in DB. """
     return CharacterData.select().where(CharacterData.guid == guid).exists()
예제 #3
0
 def does_char_with_name_exist(name):
     """ Return whether or not a character with that name exists in DB. """
     return CharacterData.select().where(CharacterData.name == name).exists()
예제 #4
0
파일: manager.py 프로젝트: Shgck/DuratorEmu
 def does_char_with_name_exist(name):
     """ Return whether or not a character with that name exists in DB. """
     return CharacterData.select().where(CharacterData.name == name).exists()