Stripped whitespace from citynames

This commit is contained in:
Computerboer
2024-01-07 15:06:57 +01:00
parent b834333f56
commit fb8ca5eec8
2 changed files with 15 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ class Cache():
log('removing cacheobject ' + key)
del cache[key]
return None
log( 'returning cacheobject ' + key)
# log( 'returning cacheobject ' + key)
return cacheobj.obj
def add(key, obj):
@@ -36,7 +36,7 @@ class CacheObj:
self.time=datetime.now()
def isOlderThanHours(self, hours):
log('checking time cacheobject ' + self.key + ': ' + str(self.time) + " < " + str(datetime.now() - timedelta(hours=hours)))
# log('checking time cacheobject ' + self.key + ': ' + str(self.time) + " < " + str(datetime.now() - timedelta(hours=hours)))
return self.time < datetime.now() - timedelta(hours=hours)