Skip to content

Commit a1de8a6

Browse files
Update validator method for count events/entities
1 parent c0a489d commit a1de8a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyslicer/utils/validators.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def check_dictionary(self, dictionary):
3232
"This query has invalid keys or values.")
3333

3434
for key in dictionary:
35-
dictionary_value = dictionary[key]
35+
if isinstance(key, dict):
36+
dictionary_value = key.get('query')
37+
else:
38+
dictionary_value = dictionary[key]
3639
self.check_dictionary_value(dictionary_value)
3740

3841
def check_list(self, dictionary_list):

0 commit comments

Comments
 (0)