Added correct spacing in logging, readded logging in locationutils

This commit is contained in:
Computerboer
2024-07-13 23:46:39 +02:00
parent b34f32e0d9
commit d85d56d670
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
def log(value): def log(value):
print(str(datetime.now()) + ' ' + value) print(str(datetime.now()) + ' ' + value)
# try: # try:
# print(str(datetime.now()) + ' ' + value.encode("utf-8")) # print(str(datetime.now()) + ' ' + value.encode("utf-8"))
# except: # except:

View File

@@ -85,7 +85,7 @@ def getGeoLocationByCity(city = "", countrycode: Countrycode = Countrycode.NL ):
#print('alternatenames without ()'+ repr( geo)) #print('alternatenames without ()'+ repr( geo))
if (geo): return geo; if (geo): return geo;
#log('city not found ' + city) log('city not found ' + city)
return None; return None;
def inAlternatenames(alternatenames = [], name = ""): def inAlternatenames(alternatenames = [], name = ""):