minecraft_manager/bot/utils.py

8 lines
170 B
Python
Raw Normal View History

from minecraft_manager.models import Application
2019-08-27 20:44:20 +00:00
def get_application(app_id):
try:
return Application.objects.get(id=app_id)
except:
return None