implement wsgi compliance

This commit is contained in:
Yannik Schmidt
2020-02-21 16:51:14 +01:00
parent 5c656f41c9
commit 169601f4c5
2 changed files with 6 additions and 0 deletions

3
app.py Normal file
View File

@@ -0,0 +1,3 @@
import server
def createApp(envivorment=None, start_response=None):
return server.app

View File

@@ -155,6 +155,9 @@ def leaderboard():
def send_js(path):
return send_from_directory('static', path)
@app.before_first_request
def init():
pass
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Start open-leaderboard', \