diff --git a/.gitignore b/.gitignore index f5e96db..a8b57ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -venv \ No newline at end of file +venv +setiings.json diff --git a/__pycache__/db.cpython-311.pyc b/__pycache__/db.cpython-311.pyc new file mode 100644 index 0000000..bf498f9 Binary files /dev/null and b/__pycache__/db.cpython-311.pyc differ diff --git a/app.py b/app.py index 8f0d75e..a799b02 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,5 @@ from flask import Flask, request +# import db app = Flask(__name__) @@ -7,20 +8,21 @@ app = Flask(__name__) def hello_world(): # put application's code here return 'Hello World!' -@app.route('/create_game', method = ["POST"]) -def create(str truechatid): - +@app.route('/create_game', methods = ["POST"]) +def create(): + TCI = request.json + db.query_ins_chat(TCI) @app.route('/start_game') def start(): # Команда принимает на вход - + pass @app.route('/action') def action(): - + pass if __name__ == '__main__': app.run() \ No newline at end of file diff --git a/db.py b/db.py index 8b85110..1cb4039 100644 --- a/db.py +++ b/db.py @@ -43,7 +43,7 @@ def query_sel(x, curs = cursor): def query_change(x): # Написать выдачу резов по ролям - return 0 + pass def close(cur = cursor, conn = connection):