Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -122,6 +122,21 @@ DATABASE_NEW = 'data_gc.db'
|
|
122 |
|
123 |
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
# Функция для очистки номера телефона
|
126 |
def clean_phone_number_ss(phone_number):
|
127 |
return re.sub(r'\D', '', phone_number)
|
@@ -259,21 +274,6 @@ def data_gc_tab_out():
|
|
259 |
|
260 |
|
261 |
|
262 |
-
@app.route('/get_current_time', methods=['GET'])
|
263 |
-
def get_current_time():
|
264 |
-
utc_now = datetime.utcnow()
|
265 |
-
msk_tz = pytz.timezone('Europe/Moscow')
|
266 |
-
msk_now = utc_now.replace(tzinfo=pytz.utc).astimezone(msk_tz)
|
267 |
-
current_time = msk_now.strftime('%Y-%m-%d %H:%M:%S')
|
268 |
-
return jsonify({'current_time': current_time})
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
|
278 |
|
279 |
# Отправка в НС1 в раб. дни нужно поправить нас групп
|
|
|
122 |
|
123 |
|
124 |
|
125 |
+
|
126 |
+
|
127 |
+
@app.route('/get_current_time', methods=['GET'])
|
128 |
+
def get_current_time():
|
129 |
+
utc_now = datetime.utcnow()
|
130 |
+
msk_tz = pytz.timezone('Europe/Moscow')
|
131 |
+
msk_now = utc_now.replace(tzinfo=pytz.utc).astimezone(msk_tz)
|
132 |
+
current_time = msk_now.strftime('%Y-%m-%d %H:%M:%S')
|
133 |
+
return jsonify({'current_time': current_time})
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
# Функция для очистки номера телефона
|
141 |
def clean_phone_number_ss(phone_number):
|
142 |
return re.sub(r'\D', '', phone_number)
|
|
|
274 |
|
275 |
|
276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
|
279 |
# Отправка в НС1 в раб. дни нужно поправить нас групп
|