fix 5 requests
This commit is contained in:
+2
-2
@@ -22,9 +22,9 @@ def updateMedodsUsers() -> bool:
|
|||||||
if not response:
|
if not response:
|
||||||
logger.error("Ответ не получен")
|
logger.error("Ответ не получен")
|
||||||
return False
|
return False
|
||||||
logger.info(response.json())
|
responseData = response.json()
|
||||||
usersFromDB = []
|
usersFromDB = []
|
||||||
for user in response.json():
|
for user in responseData["data"]:
|
||||||
if user["availabilityForOnlineRecording"] != "available":
|
if user["availabilityForOnlineRecording"] != "available":
|
||||||
continue
|
continue
|
||||||
userDict = {
|
userDict = {
|
||||||
|
|||||||
Reference in New Issue
Block a user