From b0182c606d6da59f54ebc49c9e937a247d00d1e6 Mon Sep 17 00:00:00 2001 From: Computerboer <58400197+ComputerBoer@users.noreply.github.com> Date: Wed, 30 Jul 2025 23:52:53 +0200 Subject: [PATCH] Adder filter to auctionviewer to have lots --- utils/auctionutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/auctionutils.py b/utils/auctionutils.py index 9453af6..1211827 100644 --- a/utils/auctionutils.py +++ b/utils/auctionutils.py @@ -46,7 +46,9 @@ def getAuctionlocations(countrycode: Countrycode, clearcache:bool = False): auctions = [*twkauctions, *ovmauctions, *apauctions] - + #filters all auctions for this geonameid + auctions = list(filter(lambda a: a.numberoflots > 0 , auctions)) + for auction in auctions: auction.geonamelocation = getGeoLocationByCity(auction.city, countrycode)