Compare commits
No commits in common. "3ad65b20646ca7c98a22376221bfbc8ea1b7a743" and "c7fcd33a6bbbaaf2c066a5a4f9e0c95740ff6787" have entirely different histories.
3ad65b2064
...
c7fcd33a6b
1 changed files with 3 additions and 13 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 test
|
||||
#db_config
|
||||
db_path = 'mate.db'
|
||||
conn = sqlite3.connect(db_path, check_same_thread=False)
|
||||
c = conn.cursor()
|
||||
|
@ -43,16 +43,7 @@ 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>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>
|
||||
"""
|
||||
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>'
|
||||
|
||||
@app.route("/list")
|
||||
def list():
|
||||
|
@ -70,11 +61,10 @@ 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 + '<a href="/documentation">Doumentation</a></html>'
|
||||
''' + text + '</html>'
|
||||
|
||||
@app.route("/list/user", methods=['GET'])
|
||||
def user_info():
|
||||
|
|
Loading…
Add table
Reference in a new issue