Fixed enumerate error

This commit is contained in:
Profitroll 2023-03-18 21:17:04 +01:00
parent a4323981fb
commit 1749d49a52

View File

@ -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"]}'