Loading feed2exec/model.py +8 −3 Original line number Diff line number Diff line Loading @@ -297,10 +297,15 @@ class SqliteStorage(object): def guess_path(cls): cache_home_db = os.path.join(xdg_base_dirs.xdg_cache_home, 'feed2exec.db') data_home_db = os.path.join(xdg_base_dirs.xdg_data_home, 'feed2exec.db') if os.path.exists(cache_home_db): return cache_home_db else: if os.path.exists(data_home_db): return data_home_db else: logging.warning( "falling back on deprecated cache directory, move %s to %s to remove this warning", cache_home_db, data_home_db, ) return cache_home_db def get(self, key): with self.connection(commit=False) as con: Loading Loading
feed2exec/model.py +8 −3 Original line number Diff line number Diff line Loading @@ -297,10 +297,15 @@ class SqliteStorage(object): def guess_path(cls): cache_home_db = os.path.join(xdg_base_dirs.xdg_cache_home, 'feed2exec.db') data_home_db = os.path.join(xdg_base_dirs.xdg_data_home, 'feed2exec.db') if os.path.exists(cache_home_db): return cache_home_db else: if os.path.exists(data_home_db): return data_home_db else: logging.warning( "falling back on deprecated cache directory, move %s to %s to remove this warning", cache_home_db, data_home_db, ) return cache_home_db def get(self, key): with self.connection(commit=False) as con: Loading