Both the runner.py execution and the progress.py implementation were
wrong
import hashlib
import os
import pickle
import hashlib
import os
import pickle
dired = f"{os.path.expanduser('~')}/.cache/lightcards/"
dired = f"{os.path.expanduser('~')}/.cache/lightcards/"
def purge(stra):
"""Delete pickle file"""
def purge(stra):
"""Delete pickle file"""
- file = f"{dired}/{name_gen(stra)}/"
+ file = f"{dired}/{name_gen(stra)}.p"
"""
# Purge caches if asked
if args.purge:
"""
# Purge caches if asked
if args.purge:
+ progress.purge(get_orig()[1])
# Check for caches
idx = Status()
# Check for caches
idx = Status()