DmitrMakeev commited on
Commit
dfc5447
1 Parent(s): 29f93c7

Update google_db.py

Browse files
Files changed (1) hide show
  1. google_db.py +12 -12
google_db.py CHANGED
@@ -17,18 +17,18 @@ def save_db():
17
  err = 0
18
 
19
  if api_variabl == request.args.get('api'):
20
- dey_db = globs.dey
21
- wek_db = globs.wek
22
- hours = globs.v_hid
23
- minutes = globs.v_min
24
- time_db = f"{hours}:{minutes}"
25
- ph_db = globs.ph
26
- ec_db = globs.ec
27
- tS_db = globs.tS
28
-
29
-
30
-
31
- data = f"action=addData&dey={dey_db}&wek={wek_db}&time={time_db}&ph={ph_db}&ec={ec_db}&tS={tS_db}"
32
 
33
  # Запускаем асинхронный запрос в отдельном потоке
34
  loop = asyncio.new_event_loop()
 
17
  err = 0
18
 
19
  if api_variabl == request.args.get('api'):
20
+ names = globsname
21
+ emails = globs.email
22
+ phones = globs.phone
23
+ pr1s = globs.pr1
24
+ pr2s = globs.pr2
25
+ pr3s = globs.pr3
26
+ pr4s = globs.pr4
27
+ pr5s = globs.pr5
28
+ pr6s = globs.pr6
29
+
30
+
31
+ data = f"action=addData&names={names}&emails={emails}&phones={phones}&pr1s={pr1s}&pr2s={pr2s}&pr3s={pr3s}"
32
 
33
  # Запускаем асинхронный запрос в отдельном потоке
34
  loop = asyncio.new_event_loop()