X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fprogress.py;h=bf78e0161a8349584ca7966ab77194a7876274a2;hb=da0b2a5411a041e29a0574d3aeb3f0da311ff5c1;hp=2147bff8b0e31b47441ef3e631ba0a0f93b65419;hpb=b1a79e70ed02ceeac0f2343067e0f58deff3b37e;p=lightcards.git diff --git a/lightcards/progress.py b/lightcards/progress.py index 2147bff..bf78e01 100644 --- a/lightcards/progress.py +++ b/lightcards/progress.py @@ -13,7 +13,7 @@ dired = f"{os.path.expanduser('~')}/.cache/lightcards/" def name_gen(stra): hasher = hashlib.md5() hasher.update(str(stra).encode("utf-8")) - return(hasher.hexdigest()) + return hasher.hexdigest() def make_dirs(dired): @@ -40,8 +40,3 @@ def purge(stra): file = f"{dired}/{name_gen(stra)}/" if os.path.exists(file): shutil.rmtree(file) - - -def purge_all(): - if os.path.exists(dired): - shutil.rmtree(dired)