DmitrMakeev
commited on
Commit
•
a76b9c1
1
Parent(s):
483b169
Update app.py
Browse files
app.py
CHANGED
@@ -1784,9 +1784,8 @@ def insert_data(data, template_key):
|
|
1784 |
conn.close()
|
1785 |
|
1786 |
# Проверка ключа API
|
1787 |
-
@app.before_request
|
1788 |
def verify_api_key():
|
1789 |
-
api_key = request.args.get('
|
1790 |
if api_key != "fasSd345D":
|
1791 |
return jsonify({"error": "Invalid API key"}), 403
|
1792 |
|
@@ -1838,7 +1837,6 @@ def upload_csv():
|
|
1838 |
|
1839 |
|
1840 |
|
1841 |
-
|
1842 |
|
1843 |
|
1844 |
@app.route('/gc_in', methods=['GET'])
|
|
|
1784 |
conn.close()
|
1785 |
|
1786 |
# Проверка ключа API
|
|
|
1787 |
def verify_api_key():
|
1788 |
+
api_key = request.args.get('api_sys')
|
1789 |
if api_key != "fasSd345D":
|
1790 |
return jsonify({"error": "Invalid API key"}), 403
|
1791 |
|
|
|
1837 |
|
1838 |
|
1839 |
|
|
|
1840 |
|
1841 |
|
1842 |
@app.route('/gc_in', methods=['GET'])
|