Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ DATABASE_NEW = 'data_gc.db'
|
|
123 |
|
124 |
|
125 |
|
126 |
-
|
127 |
@app.route('/get_current_time', methods=['GET'])
|
128 |
def get_current_time():
|
129 |
utc_now = datetime.utcnow()
|
@@ -140,7 +140,7 @@ def get_current_time():
|
|
140 |
# Функция для очистки номера телефона
|
141 |
def clean_phone_number_ss(phone_number):
|
142 |
return re.sub(r'\D', '', phone_number)
|
143 |
-
|
144 |
@app.route('/order_new', methods=['GET'])
|
145 |
def shop_order_new():
|
146 |
try:
|
@@ -220,7 +220,7 @@ def shop_order_new():
|
|
220 |
|
221 |
|
222 |
|
223 |
-
|
224 |
@app.route('/data_gc_tab', methods=['GET'])
|
225 |
def data_gc_tab():
|
226 |
api_sys_control = request.args.get('api_sys')
|
@@ -228,7 +228,7 @@ def data_gc_tab():
|
|
228 |
return "EUR 22", 200
|
229 |
return render_template('data_gc_tab.html')
|
230 |
|
231 |
-
|
232 |
@app.route('/data_gc_tab_out', methods=['GET'])
|
233 |
def data_gc_tab_out():
|
234 |
try:
|
@@ -267,8 +267,35 @@ def data_gc_tab_out():
|
|
267 |
|
268 |
|
269 |
|
|
|
|
|
|
|
|
|
|
|
270 |
|
271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
|
273 |
|
274 |
|
|
|
123 |
|
124 |
|
125 |
|
126 |
+
# Отдаем дату онлайн
|
127 |
@app.route('/get_current_time', methods=['GET'])
|
128 |
def get_current_time():
|
129 |
utc_now = datetime.utcnow()
|
|
|
140 |
# Функция для очистки номера телефона
|
141 |
def clean_phone_number_ss(phone_number):
|
142 |
return re.sub(r'\D', '', phone_number)
|
143 |
+
# Работа с ордером из АП
|
144 |
@app.route('/order_new', methods=['GET'])
|
145 |
def shop_order_new():
|
146 |
try:
|
|
|
220 |
|
221 |
|
222 |
|
223 |
+
# Поднятие страницы с таблицей
|
224 |
@app.route('/data_gc_tab', methods=['GET'])
|
225 |
def data_gc_tab():
|
226 |
api_sys_control = request.args.get('api_sys')
|
|
|
228 |
return "EUR 22", 200
|
229 |
return render_template('data_gc_tab.html')
|
230 |
|
231 |
+
# Данные в таблицу
|
232 |
@app.route('/data_gc_tab_out', methods=['GET'])
|
233 |
def data_gc_tab_out():
|
234 |
try:
|
|
|
267 |
|
268 |
|
269 |
|
270 |
+
|
271 |
+
|
272 |
+
|
273 |
+
|
274 |
+
|
275 |
|
276 |
+
|
277 |
+
# Поднимаем страницу обновления базы
|
278 |
+
@app.route('/biz_v', methods=['GET'])
|
279 |
+
def biz_v():
|
280 |
+
api_sys_control = request.args.get('api_sys')
|
281 |
+
if api_sys_control != api_key_sys:
|
282 |
+
return "EUR 22", 200
|
283 |
+
return render_template('biz_v.html')
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
+
|
288 |
+
|
289 |
+
|
290 |
+
|
291 |
+
|
292 |
+
|
293 |
+
|
294 |
+
|
295 |
+
|
296 |
+
|
297 |
+
|
298 |
+
|
299 |
|
300 |
|
301 |
|