Fix for ui1 showing duplicate stories on migrated stories

This commit is contained in:
ebolam
2022-12-21 11:23:47 -05:00
parent 7521091e7c
commit 1747cf9ebc

View File

@@ -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")