Upload NAIA_random_function_core.py
Browse files
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py
CHANGED
@@ -6,7 +6,8 @@ def parse_and_execute_commands(processed, user_input, fix, after, popped_row):
|
|
6 |
commands = [cmd.strip() for cmd in user_input.split(',') if not cmd.strip().startswith('#')]
|
7 |
for command in commands:
|
8 |
condition, cmd = parse_conditional_command(command)
|
9 |
-
|
|
|
10 |
processed = execute_command(processed, cmd, fix, after)
|
11 |
return processed
|
12 |
|
|
|
6 |
commands = [cmd.strip() for cmd in user_input.split(',') if not cmd.strip().startswith('#')]
|
7 |
for command in commands:
|
8 |
condition, cmd = parse_conditional_command(command)
|
9 |
+
nfix = [item.translate(str.maketrans('', '', '{}[]')) for item in fix if not item.startswith('#')]
|
10 |
+
if check_condition(processed+nfix, condition, popped_row):
|
11 |
processed = execute_command(processed, cmd, fix, after)
|
12 |
return processed
|
13 |
|