fix pet name associated

This commit is contained in:
Aaron Kimbre 2022-04-04 17:51:25 -05:00
parent 413a2c06a4
commit 8e58b0bc1f

View File

@ -127,7 +127,7 @@ def pet_name_maintenance():
with scheduler.app.app_context(): with scheduler.app.app_context():
# associate pet names to characters # associate pet names to characters
# current_app.logger.info("Started Pet Name Maintenance") # current_app.logger.info("Started Pet Name Maintenance")
unassociated_pets = PetNames.query.filter(PetNames.owner_id is None).all() unassociated_pets = PetNames.query.filter(PetNames.owner_id == None).all()
if unassociated_pets: if unassociated_pets:
current_app.logger.info("Found un-associated pets") current_app.logger.info("Found un-associated pets")
for pet in unassociated_pets: for pet in unassociated_pets: