DmitrMakeev
commited on
Commit
•
9bb6132
1
Parent(s):
6d73e16
Update app.py
Browse files
app.py
CHANGED
@@ -1765,6 +1765,8 @@ def display_form():
|
|
1765 |
|
1766 |
|
1767 |
DATABASE6 = 'data_gc.db'
|
|
|
|
|
1768 |
# Функция для очистки номера телефона
|
1769 |
def clean_phone_number_ss(phone_number):
|
1770 |
return re.sub(r'\D', '', phone_number)
|
@@ -1817,10 +1819,8 @@ def insert_data_ss(data):
|
|
1817 |
conn.commit()
|
1818 |
conn.close()
|
1819 |
|
1820 |
-
|
1821 |
@app.route('/order', methods=['GET'])
|
1822 |
-
|
1823 |
-
|
1824 |
def from_shop_st():
|
1825 |
try:
|
1826 |
api_sys_control = request.args.get('api_sys')
|
@@ -1926,7 +1926,6 @@ def from_shop_st():
|
|
1926 |
|
1927 |
|
1928 |
|
1929 |
-
|
1930 |
|
1931 |
|
1932 |
@app.route('/gc_in', methods=['GET'])
|
|
|
1765 |
|
1766 |
|
1767 |
DATABASE6 = 'data_gc.db'
|
1768 |
+
api_key_sys = 'your_api_key_here' # Replace with your actual API key
|
1769 |
+
|
1770 |
# Функция для очистки номера телефона
|
1771 |
def clean_phone_number_ss(phone_number):
|
1772 |
return re.sub(r'\D', '', phone_number)
|
|
|
1819 |
conn.commit()
|
1820 |
conn.close()
|
1821 |
|
1822 |
+
# Маршрут для приема GET запроса
|
1823 |
@app.route('/order', methods=['GET'])
|
|
|
|
|
1824 |
def from_shop_st():
|
1825 |
try:
|
1826 |
api_sys_control = request.args.get('api_sys')
|
|
|
1926 |
|
1927 |
|
1928 |
|
|
|
1929 |
|
1930 |
|
1931 |
@app.route('/gc_in', methods=['GET'])
|