1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

bnhkmji9olijkm8n7brrdgtc678i87jm drgex

This commit is contained in:
Steffo 2017-11-15 10:29:01 +01:00
parent dae3ee2649
commit c5d8f50603
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D
3 changed files with 216 additions and 203 deletions

View file

@ -10,6 +10,8 @@ from discord import Status as DiscordStatus
# Init the config reader # Init the config reader
import configparser import configparser
= u.idle()
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.read("config.ini") config.read("config.ini")
@ -127,4 +129,3 @@ def process(arg_discord_connection):
u.dispatcher.add_handler(CommandHandler("discord", cmd_discord)) u.dispatcher.add_handler(CommandHandler("discord", cmd_discord))
u.dispatcher.add_handler(CommandHandler("cast", cmd_cast)) u.dispatcher.add_handler(CommandHandler("cast", cmd_cast))
u.start_polling() u.start_polling()
u.idle()

View file

@ -11,9 +11,13 @@
<body> <body>
<div class="container"> <div class="container">
<h1> <h1>
Dota 2 Royal Games Leaderboards
</h1> </h1>
<table id="dota" class="table table-hover sortable dota"> <div id="dota">
<h2>
Dota 2
</h2>
<table class="table table-hover sortable dota">
<thead> <thead>
<tr> <tr>
<th>Royal</th> <th>Royal</th>
@ -35,10 +39,12 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<h1> </div>
<div id="rl">
<h2>
Rocket League Rocket League
</h1> </h2>
<table id="rl" class="table table-hover sortable rl"> <table class="table table-hover sortable rl">
<thead> <thead>
<tr> <tr>
<th>Royal</th> <th>Royal</th>
@ -118,10 +124,12 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<h1> </div>
<div id="overwatch">
<h2>
Overwatch Overwatch
</h1> </h2>
<table id="overwatch" class="table table-hover sortable"> <table class="table table-hover sortable">
<thead> <thead>
<tr> <tr>
<th>Royal</th> <th>Royal</th>
@ -153,10 +161,12 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<h1> </div>
<div id="osu">
<h2>
Osu! Osu!
</h1> </h2>
<table id="osu" class="table table-hover sortable"> <table class="table table-hover sortable">
<thead> <thead>
<tr> <tr>
<th>Royal</th> <th>Royal</th>
@ -180,9 +190,11 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<h1> </div>
<div id="league">
<h2>
League of Legends League of Legends
</h1> </h2>
<table class="table table-hover sortable"> <table class="table table-hover sortable">
<thead> <thead>
<tr> <tr>
@ -220,5 +232,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
</body> </body>
</html> </html>

View file

@ -1,7 +1,6 @@
from flask import Flask, render_template from flask import Flask, render_template
from db import Session, Royal, Steam, RocketLeague, Dota, Osu, Overwatch, LeagueOfLegends from db import Session, Royal, Steam, RocketLeague, Dota, Osu, Overwatch, LeagueOfLegends
from sqlalchemy.orm import joinedload from sqlalchemy.orm import joinedload
from sqlalchemy import func
app = Flask(__name__) app = Flask(__name__)