Commit e77fb6af authored by Studer Brendan's avatar Studer Brendan
Browse files

added var in .env

parent 3c478336
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
INPUT_FILE_NAME=Chapters.json
OUTPUT_FOLDER_NAME=Output
LAST_INTERACTION=-1
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ def main(argv):
                            f"{interaction['Actor']['Name']}: {interaction['Text']}\n\n")

                        for choice in interaction['Responses']:
                            if choice['NextInteractionID'] == -1:
                            if choice['NextInteractionID'] == int(app_config.get("LAST_INTERACTION")):
                                if idx_scene == len(chapter["Scenes"]) - 1:
                                    if idx_chapter == len(contents["Chapters"]) -1:
                                        f.write(