Skip to content
Snippets Groups Projects
Verified Commit 8f2e7f9b authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Fix more bugs

parent 5f88e914
No related branches found
No related tags found
No related merge requests found
...@@ -386,15 +386,15 @@ if __name__ == "__main__": ...@@ -386,15 +386,15 @@ if __name__ == "__main__":
widget_sequence = decode_dict(parts[1]) widget_sequence = decode_dict(parts[1])
with open("sequence_config.json", "w") as f: with open("sequence_config.json", "w") as f:
json.dump({ json.dump({
"widgets": widget_sequence, "widget": widget_sequence,
"patterns": pattern_sequence "pattern": pattern_sequence
}, f, indent=4) }, f, indent=4)
elif parts[0] == "SAVE_PATTERN_SEQUENCE_CFG" and len(parts) == 2: elif parts[0] == "SAVE_PATTERN_SEQUENCE_CFG" and len(parts) == 2:
pattern_sequence = decode_dict(parts[1]) pattern_sequence = decode_dict(parts[1])
with open("sequence_config.json", "w") as f: with open("sequence_config.json", "w") as f:
json.dump({ json.dump({
"widgets": widget_sequence, "widget": widget_sequence,
"patterns": pattern_sequence "pattern": pattern_sequence
}, f, indent=4) }, f, indent=4)
except queue.Empty: except queue.Empty:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment