Fixed error on logging

This commit is contained in:
Computerboer
2024-07-12 23:20:19 +02:00
parent 69548e8c1e
commit ea74f47a2c
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ def getTWKAuction(twkDataUrl, auctionurlslug):
twka = data['pageProps']['auction'];
firstlot = data['pageProps']['lots']['results'][0]
city = "Nederland" if firstlot['location']['city'].lower() == 'online' else firstlot['location']['city']
city = "Nederland" if firstlot['location']['city'].lower() == 'online' or firstlot['location']['city'].lower() == "free delivery" else firstlot['location']['city']
# if(firstlot['location']['city'].lower() != 'online'):
# city = firstlot['location']['city'];
a = Auction(Auctionbrand.TWK, city, firstlot['location']['countryCode'].upper(), twka['name'], datetime.fromtimestamp(twka['startDate']), datetime.fromtimestamp(twka['minEndDate']), '/a/' + auctionurlslug, twka['image']['url'], twka['lotCount'] )

View File

@@ -1,5 +1,5 @@
from datetime import datetime, timedelta
def log(value):
print(str(datetime.now()) + ' ' + value)
print(u' '.join(( str(datetime.now()), value)).encode('utf-8').strip())
# print( str(value))