This commit is contained in:
2024-04-09 00:16:08 +02:00
parent e5f26566ca
commit 3b32cdc4e7
+12 -12
View File
@@ -2214,19 +2214,19 @@ async def krecimy_pornola(ctx):
ctx.reply("Jak ładnie szefa poprosisz.")
@app.route("/", methods=["GET"])
@app.route("/conjurer", methods=["GET"])
def answer_external_command():
record = json.loads(request.data)
logger.info(record)
answer_data = "TXT"
if "UUID" in record and "QUERY" in record and "AUTHOR" in record:
answer_data = "Query logged"
return_data = (
jsonify(isError=False, message="Success", statusCode=200, data=answer_data),
200,
)
return return_data
#record = json.loads(request.data)
#logger.info(record)
#answer_data = "TXT"
#if "UUID" in record and "QUERY" in record and "AUTHOR" in record:
# answer_data = "Query logged"
#return_data = (
# jsonify(isError=False, message="Success", statusCode=200, data=answer_data),
# 200,
#)
#return return_data
return jsonify("SUCCESS")
def flask_debug(_logger):
"""