Compare commits
2 commits
c7fcd33a6b
...
3ad65b2064
Author | SHA1 | Date | |
---|---|---|---|
3ad65b2064 | |||
604a25cb2c |
1 changed files with 13 additions and 3 deletions
16
main.py
16
main.py
|
@ -5,7 +5,7 @@ from flask_socketio import SocketIO, join_room, leave_room
|
|||
from flask_session import Session
|
||||
from markupsafe import escape
|
||||
|
||||
#db_config
|
||||
#db_config test
|
||||
db_path = 'mate.db'
|
||||
conn = sqlite3.connect(db_path, check_same_thread=False)
|
||||
c = conn.cursor()
|
||||
|
@ -43,7 +43,16 @@ def favicon():
|
|||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return '<a href="/list">user and tag list</a> <p>The creator of this website accepts no liability for any linguistic or technical errors!</p><br style="line-height: 500%;"></br><a href="/documentation">Doumentation</a>'
|
||||
return """
|
||||
<a href="/list">user and tag list</a>
|
||||
<p>The creator of this website accepts no liability for any linguistic or technical errors!</p>
|
||||
<br style="line-height: 500%;"></br>
|
||||
<a href="/documentation">Doumentation</a>script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous">
|
||||
</script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.location="http://matekasse.server.c3h/list"
|
||||
</script>
|
||||
"""
|
||||
|
||||
@app.route("/list")
|
||||
def list():
|
||||
|
@ -61,10 +70,11 @@ def list():
|
|||
window.location="http://matekasse.server.c3h/list"
|
||||
});
|
||||
</script>
|
||||
<p>1 Credit = 1,50 Euro</p>
|
||||
<form action="/list/user" method="get"> Search for User: <input name="user"><input type="submit"></form>
|
||||
<form action="/adduser" method="get"><button type="submit">Add User</button></form>
|
||||
<br></br>
|
||||
''' + text + '</html>'
|
||||
''' + text + '<a href="/documentation">Doumentation</a></html>'
|
||||
|
||||
@app.route("/list/user", methods=['GET'])
|
||||
def user_info():
|
||||
|
|
Loading…
Add table
Reference in a new issue