dev #19
@ -64,7 +64,7 @@ async def upload_pic(filepath: str, token: Union[str, None] = None) -> Tuple[boo
|
|||||||
duplicates = []
|
duplicates = []
|
||||||
if "duplicates" in response.json():
|
if "duplicates" in response.json():
|
||||||
for duplicate in response.json()["duplicates"]:
|
for duplicate in response.json()["duplicates"]:
|
||||||
duplicates.append(f'{configGet("address", "posting", "api")}/photos/{duplicate["id"]}')
|
duplicates.append(f'{configGet("address_external", "posting", "api")}/photos/{duplicate["id"]}')
|
||||||
return True, duplicates
|
return True, duplicates
|
||||||
except:
|
except:
|
||||||
return False, []
|
return False, []
|
||||||
|
Reference in New Issue
Block a user