mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fix?
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user