mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 15:11:35 +01:00
implement wsgi compliance
This commit is contained in:
3
app.py
Normal file
3
app.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import server
|
||||
def createApp(envivorment=None, start_response=None):
|
||||
return server.app
|
||||
@@ -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', \
|
||||
Reference in New Issue
Block a user