1
0
Fork 0
forked from anton/matekasse

Documentation

This commit is contained in:
2000-Trek 2023-06-21 20:08:31 +02:00
parent 693f62196e
commit 3137648376
3 changed files with 60 additions and 2 deletions

View file

@ -266,6 +266,7 @@ def get_id():
finished = queue_item
c.execute(f"SELECT * FROM users WHERE id={user}")
username = c.fetchall()
conn.commit()
return make_response(json.dumps({"mode":"2","username":username,"code":"1"}))
elif state == "remove":
c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = {user})")
@ -276,15 +277,15 @@ def get_id():
finished = queue_item
c.execute(f"SELECT * FROM users WHERE id={user}")
username = c.fetchall()
conn.commit()
return make_response(json({"mode":"2","username":username,"code":"2"}))
else:
message = "Tag does not exist"
finished = queue_item
return make_response(json.dumps({"mode":"0","error":"054"}))
conn.commit()
finished = queue_item
socketio.emit("update", "update")
return make_response("True")
return make_response(json.dumps({"mode":"0","error":"418"}))
elif tag_list != []:
tag = tag_list[0]
@ -302,6 +303,7 @@ def get_id():
app.route("/documentation")
def documentation():
return render_template("documentation.html")
def main():
atexit.register(exit_handler)
socketio.run(app, host='0.0.0.0', port=5000)

View file

@ -0,0 +1,35 @@
body{
background-color: rgb(255, 255, 255);
}
#Überschrift{
color: rgb(0, 0, 0);
}
#Infos{
color: black;
box-shadow: 3px 3px gray ;
background-color: lightgreen;
border-style: solid;
border-radius: 40px;
padding: 5px;
border-width: 1px;
border-color:white;
margin-bottom: 50px;
}
#text_Infos1{
text-align: center;
color: black;
background-color: gray;
border: 2px;
border-style: dashed;
border-color: white;
border-radius: 10px;
}
#Überschrift_Infos1{
color: rgb(7, 253, 7);
text-shadow: 5px 3px rgb(114, 99, 99);
}

View file

@ -0,0 +1,21 @@
<html>
<head>
<title>Documentation</title>
<link rel="stylesheet" type="text/css" href="documentation.css">
<link rel="shortcut icon" type="Logo/png" href="ccc_logo.png"/>
</head>
<body>
<font id="Überschrift" size="+5"> <u>Documentation</u> </font>
<p>&nbsp;</p>
<div id="Infos">
<p> <a href="/">index page</a> | <a href="/list">user and tag list</a></p>
</div>
<div id="Text_Infos1">
<font id="Überschrift_Infos1" size="+4"> <u>Documentation</u> </font>
<p>Documentation</p>
</div>
</body>
</html>