This commit is contained in:
ada-dmitry
2023-08-22 15:44:27 +03:00
parent aaf66b516b
commit 8e05627782
4 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -1 +1,2 @@
venv venv
setiings.json
Binary file not shown.
+7 -5
View File
@@ -1,4 +1,5 @@
from flask import Flask, request from flask import Flask, request
# import db
app = Flask(__name__) app = Flask(__name__)
@@ -7,20 +8,21 @@ app = Flask(__name__)
def hello_world(): # put application's code here def hello_world(): # put application's code here
return 'Hello World!' return 'Hello World!'
@app.route('/create_game', method = ["POST"]) @app.route('/create_game', methods = ["POST"])
def create(str truechatid): def create():
TCI = request.json
db.query_ins_chat(TCI)
@app.route('/start_game') @app.route('/start_game')
def start(): # Команда принимает на вход def start(): # Команда принимает на вход
pass
@app.route('/action') @app.route('/action')
def action(): def action():
pass
if __name__ == '__main__': if __name__ == '__main__':
app.run() app.run()
+1 -1
View File
@@ -43,7 +43,7 @@ def query_sel(x, curs = cursor):
def query_change(x): def query_change(x):
# Написать выдачу резов по ролям # Написать выдачу резов по ролям
return 0 pass
def close(cur = cursor, conn = connection): def close(cur = cursor, conn = connection):