Skip to content

Commit 4349ac0

Browse files
committed
ci: Update python code
1 parent d672b8f commit 4349ac0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rpas/add_data_to_firestore.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytz
55
import os
66
import time
7+
import json
78

89
import firebase_admin
910
from firebase_admin import credentials
@@ -124,7 +125,8 @@ def upload_data(item: dict):
124125

125126
print("parameters: ", parameters)
126127

127-
response = requests.get(url=END_POINT, params=parameters).json()
128+
response = requests.get(url=END_POINT, params=parameters)
129+
response = json.loads(response.text)
128130

129131
print("Response:", response['response']['header'])
130132
print("data Length: ", response['response']['body']['totalCount'])
@@ -141,4 +143,4 @@ def upload_data(item: dict):
141143

142144
print("Data Upload Success at", wtqltObsrvtCd[key], "\n\n")
143145

144-
time.sleep(25)
146+
time.sleep(15)

0 commit comments

Comments
 (0)