From 7d2eb02d0c8c3ffbadd1ebfc4395c17d1e054116 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 25 Jan 2018 15:29:38 +0100 Subject: [PATCH 1/3] No debug --- webserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver.py b/webserver.py index ecc24d72..d8f16ea6 100644 --- a/webserver.py +++ b/webserver.py @@ -32,6 +32,6 @@ def page_leaderboards(): if __name__ == "__main__": try: - app.run(host="0.0.0.0", port=1234, debug=True) + app.run(host="0.0.0.0", port=1234) except KeyboardInterrupt: - pass \ No newline at end of file + pass From 0a5b4233e11918aa70df76b112443e787d6454ad Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 25 Jan 2018 15:30:07 +0100 Subject: [PATCH 2/3] Linuxopus --- discordbot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discordbot.py b/discordbot.py index cfaa072c..32a8c289 100644 --- a/discordbot.py +++ b/discordbot.py @@ -33,7 +33,7 @@ finally: # Init the discord bot client = discord.Client() -discord.opus.load_opus("libopus-0.dll") +discord.opus.load_opus("/usr/lib/x86_64-linux-gnu/libopus.so") voice_client = None voice_player = None voice_queue = [] @@ -58,7 +58,7 @@ class Video: self.enqueued = enqueued self.channel = channel return self - + def create_embed(self): embed = discord.Embed(type="rich", title=self.info.get("title"), @@ -382,4 +382,4 @@ def process(users_connection=None): if __name__ == "__main__": - process() \ No newline at end of file + process() From 7e4699b7c3091ac903bebd65bdd2e9eadaf97ae4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 2 Feb 2018 11:33:00 +0100 Subject: [PATCH 3/3] Fix caps --- templates/leaderboards.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/leaderboards.html b/templates/leaderboards.html index 304a5bd5..bacd34bd 100644 --- a/templates/leaderboards.html +++ b/templates/leaderboards.html @@ -38,10 +38,10 @@ {{ record.wins }}
- {% if record.rank_tier is not None %} + {% if record.rank_tier is not none %} {% if record.get_rank_stars_url() %}{% endif %} {% endif %} - {% if record.rank_tier is not None and record.rank_tier < 10 %} + {% if record.rank_tier is not none and record.rank_tier < 10 %} Unranked {% else %} {{ record.get_rank_name() }} {{ record.get_rank_number() }}