1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Remove unused import

This commit is contained in:
Steffo 2019-02-26 19:47:26 +01:00
parent cfb3e53ff4
commit ee4ee17ad0

View file

@ -9,7 +9,6 @@ import datetime
# noinspection PyPackageRequirements # noinspection PyPackageRequirements
import telegram import telegram
import sql_queries import sql_queries
import random
import re import re
import functools import functools
import strings import strings
@ -298,7 +297,6 @@ def page_wiki_edit(key: str):
number=fiorygi, number=fiorygi,
fiorygi=fiorygi_word, fiorygi=fiorygi_word,
reason="aver contribuito alla wiki Royal Games") reason="aver contribuito alla wiki Royal Games")
except Exception: except Exception:
pass pass
return redirect(url_for("page_wiki", key=key)) return redirect(url_for("page_wiki", key=key))
@ -369,7 +367,7 @@ def page_music_individual(discord_id: str):
def page_activity(): def page_activity():
reports = list(fl_g.session.query(db.ActivityReport).order_by(db.ActivityReport.timestamp.desc()).limit(192).all()) reports = list(fl_g.session.query(db.ActivityReport).order_by(db.ActivityReport.timestamp.desc()).limit(192).all())
hourly_avg = list(fl_g.session.execute(sql_queries.activity_by_hour, {"current_month": datetime.datetime.now().month})) hourly_avg = list(fl_g.session.execute(sql_queries.activity_by_hour, {"current_month": datetime.datetime.now().month}))
previous_month = datetime.datetime.now().month - 1 previous_month = datetime.datetime.now().month - 1
if previous_month == 0: if previous_month == 0:
previous_month = 12 previous_month = 12
hourly_comp = list(fl_g.session.execute(sql_queries.activity_by_hour, {"current_month": previous_month})) hourly_comp = list(fl_g.session.execute(sql_queries.activity_by_hour, {"current_month": previous_month}))