From 8b69c72d5a9229d47eaf046912221bbd07ba805c Mon Sep 17 00:00:00 2001 From: Etzelia Date: Thu, 13 Dec 2018 16:28:33 -0600 Subject: [PATCH] Cleanup Added resolve_application and resolve_player utilities, need to update usage as needed Replaced Search Player back-end logic with resolve_player --- api/bot.py | 3 +-- templates/minecraft_manager/dashboard.html | 6 ------ templates/minecraft_manager/player_info.html | 2 +- templatetags/sidebar.py | 2 +- utils.py | 20 ++++++++++++++++++++ views.py | 13 +++++-------- 6 files changed, 28 insertions(+), 18 deletions(-) diff --git a/api/bot.py b/api/bot.py index 4ba497b..41cbc89 100644 --- a/api/bot.py +++ b/api/bot.py @@ -1,10 +1,9 @@ -import discord, logging, re, sys, traceback, asyncio, datetime, os, time +import discord, logging, re, sys, traceback, asyncio from minecraft_manager.models import Application, Player from minecraft_manager.api import api from django.contrib.auth.models import User from django.conf import settings from django.db import close_old_connections -from threading import Thread logger = logging.getLogger(__name__) diff --git a/templates/minecraft_manager/dashboard.html b/templates/minecraft_manager/dashboard.html index 3890217..94fae09 100644 --- a/templates/minecraft_manager/dashboard.html +++ b/templates/minecraft_manager/dashboard.html @@ -18,12 +18,6 @@