From 1749d49a5235db97e00222e0cb7956837e772428 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sat, 18 Mar 2023 21:17:04 +0100 Subject: [PATCH] Fixed enumerate error --- modules/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api_client.py b/modules/api_client.py index 4ae6b41..9cb6dc0 100644 --- a/modules/api_client.py +++ b/modules/api_client.py @@ -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"]}'