Try to remove duplicate auctions from location
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user