fix context issue
This commit is contained in:
		| @@ -128,6 +128,7 @@ def get_pets(status="all"): | ||||
|  | ||||
| @scheduler.task("cron", id="pet_name_maintenance", minute=0, timezone="UTC") | ||||
| def pet_name_maintenance(): | ||||
|     with scheduler.app.app_context(): | ||||
|         # associate pet names to characters | ||||
|         unassociated_pets = PetNames.query.filter(PetNames.owner_id == None).all() | ||||
|         if unassociated_pets: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aaron Kimbre
					Aaron Kimbre