Compare commits
2 Commits
912c7ed374
...
d31ae47cde
| Author | SHA1 | Date | |
|---|---|---|---|
|
d31ae47cde
|
|||
|
8458a5b66f
|
@ -4,11 +4,11 @@ from .core import app
|
|||||||
# Start the flask server if run from terminal
|
# Start the flask server if run from terminal
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/game')
|
||||||
def get_root():
|
def get_root():
|
||||||
return app.send_static_file('index.html')
|
return app.send_static_file('index.html')
|
||||||
|
|
||||||
@app.route('/<path:path>')
|
@app.route('/game/<path:path>')
|
||||||
def get_path(path):
|
def get_path(path):
|
||||||
fpath = f"{app.static_folder}/{path}"
|
fpath = f"{app.static_folder}/{path}"
|
||||||
|
|
||||||
@ -4,8 +4,8 @@
|
|||||||
# _/ __/ / /_/ /___/ /_/ / _/ /__/ /_/ // /_/ // __/
|
# _/ __/ / /_/ /___/ /_/ / _/ /__/ /_/ // /_/ // __/
|
||||||
# /_/ ___\__,_//____/ /_/ __/_/ \____//_____/_\___/
|
# /_/ ___\__,_//____/ /_/ __/_/ \____//_____/_\___/
|
||||||
|
|
||||||
# Corona time tracker
|
# Schnitzeljagd time tracker
|
||||||
|
|
||||||
VERSION = (1, 1, 0)
|
VERSION = (0, 1, 0)
|
||||||
|
|
||||||
__version__ = '.'.join(map(str, VERSION))
|
__version__ = '.'.join(map(str, VERSION))
|
||||||
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ with open("LICENSE.md", "r") as f:
|
|||||||
license_text = f.read()
|
license_text = f.read()
|
||||||
|
|
||||||
st.setup(
|
st.setup(
|
||||||
name="schnitzeljagt",
|
name="schnitzeljagd",
|
||||||
version="0.1.0",
|
version="0.1.0",
|
||||||
author="Oskar @ FaSTTUBe",
|
author="Oskar @ FaSTTUBe",
|
||||||
author_email="o.winkels@fasttube.de",
|
author_email="o.winkels@fasttube.de",
|
||||||
|
|||||||
@ -33,9 +33,9 @@
|
|||||||
In the former case: Yay it works! In the latter you should
|
In the former case: Yay it works! In the latter you should
|
||||||
probably contact an admin or a dev nearby :(<br><br>
|
probably contact an admin or a dev nearby :(<br><br>
|
||||||
Here are a few links for testing:<br>
|
Here are a few links for testing:<br>
|
||||||
<a href="/view">View Data</a>,
|
<a href="/game/view">View Data</a>,
|
||||||
<a href="/QRgen">Door Sign Generator</a>,
|
<a href="/game/QRgen">Door Sign Generator</a>,
|
||||||
<a href="/?game=schnitzeljagd&checkpoint=42">Test Checkpoint</a>,
|
<a href="/game/?game=schnitzeljagd&checkpoint=42">Test Checkpoint</a>,
|
||||||
<br><br>
|
<br><br>
|
||||||
© 2025 made by <a target="_blank" href="mailto:o.winkels@fasttube.de">Oskar</a>
|
© 2025 made by <a target="_blank" href="mailto:o.winkels@fasttube.de">Oskar</a>
|
||||||
for <a target="_blank" href="//fasttube.de">FaSTTUBe</a>.<br>
|
for <a target="_blank" href="//fasttube.de">FaSTTUBe</a>.<br>
|
||||||
|
|||||||
@ -51,7 +51,7 @@ function sendMainData() {
|
|||||||
'name': name
|
'name': name
|
||||||
}
|
}
|
||||||
|
|
||||||
post("/checkin", payload)
|
post("/game/checkin", payload)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -236,7 +236,7 @@ function loadData() {
|
|||||||
headers: headers
|
headers: headers
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch('/data', fetchopts)
|
fetch('/game/data', fetchopts)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (Math.floor(res.status / 100) == 2)
|
if (Math.floor(res.status / 100) == 2)
|
||||||
return res.json()
|
return res.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user