Added correct spacing in logging, readded logging in locationutils
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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 = ""):
|
||||||
|
|||||||
Reference in New Issue
Block a user