mirror of https://gitlab.com/bashrc2/epicyon
Add readers if needed
parent
9d9a22ce71
commit
793a2dfd75
|
@ -265,6 +265,8 @@ def remove_reading_event(base_dir: str,
|
|||
readers_path + '/' + actor.replace('/', '#') + '.json'
|
||||
|
||||
reader_books_json = {}
|
||||
if 'readers' not in books_cache:
|
||||
books_cache['readers'] = {}
|
||||
if books_cache['readers'].get(actor):
|
||||
reader_books_json = books_cache['readers'][actor]
|
||||
elif os.path.isfile(reader_books_filename):
|
||||
|
|
Loading…
Reference in New Issue