just return it.. no prints needed
This commit is contained in:
+1
-2
@@ -60,8 +60,7 @@ class LazyDB(Singleton):
|
|||||||
return False
|
return False
|
||||||
cache_modified = os.stat(self.__cache_file()).st_mtime
|
cache_modified = os.stat(self.__cache_file()).st_mtime
|
||||||
cache_dir_modified = os.stat(self.cachedir).st_mtime
|
cache_dir_modified = os.stat(self.cachedir).st_mtime
|
||||||
valid = cache_modified > cache_dir_modified
|
return cache_modified > cache_dir_modified
|
||||||
return valid
|
|
||||||
|
|
||||||
def cache_load(self):
|
def cache_load(self):
|
||||||
if os.path.exists(self.__cache_file()) and self.cache_valid():
|
if os.path.exists(self.__cache_file()) and self.cache_valid():
|
||||||
|
|||||||
Reference in New Issue
Block a user