From d8c68fe9cc59f667478bb763cf690d8f771afa59 Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 3 Apr 2023 20:04:52 -0700 Subject: Fix refresh issue --- backend/endpoints/get_plist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/endpoints/get_plist.py') diff --git a/backend/endpoints/get_plist.py b/backend/endpoints/get_plist.py index 1fda2d5..07d7b3a 100644 --- a/backend/endpoints/get_plist.py +++ b/backend/endpoints/get_plist.py @@ -9,8 +9,6 @@ from config import Config class Get_Plist: output = dict() - output["docsets"] = [] - def find_plist(path): with os.scandir(path) as it: @@ -46,6 +44,8 @@ class Get_Plist: def main(): + Get_Plist.output["docsets"] = [] + if not os.path.isdir(Config.docset_base): e = "Invalid DOCSET_BASE \"" + Config.docset_base + "\"" logging.error(e); -- cgit