Try to remove duplicate auctions from location

This commit is contained in:
Computerboer
2025-07-20 20:38:30 +02:00
parent 5713fcb0cf
commit 86921652e3

View File

@@ -60,6 +60,7 @@ def getAuctionlocations(countrycode: Countrycode, clearcache:bool = False):
#filters all auctions for this geonameid #filters all auctions for this geonameid
geoauctions = list(filter(lambda a: get_geonameid(a) == geoid , auctions)) geoauctions = list(filter(lambda a: get_geonameid(a) == geoid , auctions))
if(geoauctions): if(geoauctions):
geoauctions = list({object_.url: object_ for object_ in geoauctions}.values())
#gets the location (if it has any) for the geolocation #gets the location (if it has any) for the geolocation
location = geoauctions[0].geonamelocation location = geoauctions[0].geonamelocation
if(location): if(location):