mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 00:07:21 +00:00
update chat log method
This commit is contained in:
parent
555b1bef1b
commit
fbb226b0aa
@ -391,7 +391,7 @@ def server():
|
||||
# Hier werden die Chat Nachrichten Verschickt
|
||||
@app.route("/get")
|
||||
def get():
|
||||
chat_log("called /get with GET", "INFO")
|
||||
insert_log("chat", ")called /get with GET", "INFO")
|
||||
conn = sqlite3.connect("party.db")
|
||||
c = conn.cursor()
|
||||
c.execute("SELECT username, message, timestamp FROM messages")
|
||||
|
||||
@ -8,7 +8,6 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
|
||||
return send_from_directory('.', 'index.html')
|
||||
|
||||
@app.route('/upload', methods=['POST'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user