From 1747cf9ebc1595fce0634dbbb7cb4ef47e8192f8 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 21 Dec 2022 11:23:47 -0500 Subject: [PATCH] Fix for ui1 showing duplicate stories on migrated stories --- fileops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileops.py b/fileops.py index 78a670bc..a195bb06 100644 --- a/fileops.py +++ b/fileops.py @@ -86,7 +86,7 @@ def uspath(filename): def getstoryfiles(): list = [] for file in listdir("stories"): - if file.endswith(".json") and not file.endswith(".v2.json"): + if file.endswith(".json") and not file.endswith(".v2.json") and not os.path.isdir("stories/{}".format(file.replace(".json", ""))): ob = {} ob["name"] = file.replace(".json", "") f = open("stories/"+file, "r")