Fixed enumerate error
This commit is contained in:
parent
a4323981fb
commit
1749d49a52
@ -163,7 +163,7 @@ async def upload_pic(
|
||||
id = response_json["id"] if "id" in await response.json() else None
|
||||
duplicates = []
|
||||
if "duplicates" in response_json:
|
||||
for index, duplicate in enumerate(response_json)["duplicates"]: # type: ignore
|
||||
for index, duplicate in enumerate(response_json["duplicates"]): # type: ignore
|
||||
if response_json["access_token"] is None:
|
||||
duplicates.append(
|
||||
f'`{duplicate["id"]}`:\n{configGet("address_external", "posting", "api")}/photos/{duplicate["id"]}'
|
||||
|
Reference in New Issue
Block a user