Spaces:
Sleeping
Sleeping
Commit
•
de2520c
1
Parent(s):
945f7f7
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ class Validator:
|
|
54 |
self.valid = False
|
55 |
|
56 |
def validate_prompt_order_list(self):
|
57 |
-
for s in self.obj
|
58 |
if not Validator.is_valid_ordering(s):
|
59 |
self.valid = False
|
60 |
|
@@ -108,9 +108,8 @@ class Validator:
|
|
108 |
elif self.validate_key("prompt_order", dict):
|
109 |
if not Validator.is_valid_prompt_order_list(self.obj["prompt_order"]):
|
110 |
self.valid = False
|
111 |
-
|
112 |
-
|
113 |
-
seen_cid0 = True
|
114 |
if not seen_cid0:
|
115 |
self.valid = False
|
116 |
|
|
|
54 |
self.valid = False
|
55 |
|
56 |
def validate_prompt_order_list(self):
|
57 |
+
for s in self.obj:
|
58 |
if not Validator.is_valid_ordering(s):
|
59 |
self.valid = False
|
60 |
|
|
|
108 |
elif self.validate_key("prompt_order", dict):
|
109 |
if not Validator.is_valid_prompt_order_list(self.obj["prompt_order"]):
|
110 |
self.valid = False
|
111 |
+
elif all(lambda o: o["identifier"] in known_prompt_ids for o in self.obj["prompt_order"]):
|
112 |
+
seen_cid0 = True
|
|
|
113 |
if not seen_cid0:
|
114 |
self.valid = False
|
115 |
|