Pretty-print JSON to cache
Easier for debugging, not really needed though, takes more place for nothingmaster
parent
c83f5bb23d
commit
020c095194
2
morss.py
2
morss.py
|
@ -171,7 +171,7 @@ class Cache:
|
||||||
os.makedirs(self._dir)
|
os.makedirs(self._dir)
|
||||||
|
|
||||||
with open(self._file, 'w') as file:
|
with open(self._file, 'w') as file:
|
||||||
file.write(json.dumps(self._cache))
|
file.write(json.dumps(self._cache, indent=4))
|
||||||
|
|
||||||
def isYoungerThan(self, sec):
|
def isYoungerThan(self, sec):
|
||||||
if not os.path.exists(self._file):
|
if not os.path.exists(self._file):
|
||||||
|
|
Loading…
Reference in New Issue