dev #19

Merged
profitroll merged 98 commits from dev into master 2023-04-24 13:48:22 +03:00
Showing only changes of commit 1749d49a52 - Show all commits

View File

@ -163,7 +163,7 @@ async def upload_pic(
id = response_json["id"] if "id" in await response.json() else None id = response_json["id"] if "id" in await response.json() else None
duplicates = [] duplicates = []
if "duplicates" in response_json: 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: if response_json["access_token"] is None:
duplicates.append( duplicates.append(
f'`{duplicate["id"]}`:\n{configGet("address_external", "posting", "api")}/photos/{duplicate["id"]}' f'`{duplicate["id"]}`:\n{configGet("address_external", "posting", "api")}/photos/{duplicate["id"]}'