Skip to content

Commit 322b32a

Browse files
authored
Merge pull request #2125 from CybercentreCanada/ds/fix_typo
Fix typo in condition for handling models with a root-level classification field
2 parents 4afa158 + e033396 commit 322b32a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assemblyline/datastore/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def _validate_operations(self, operations):
12241224
"""
12251225
if self.model_class:
12261226
fields = self.model_class.flat_fields(show_compound=True)
1227-
if 'classification in fields':
1227+
if 'classification' in fields:
12281228
fields.update({"__access_lvl__": Integer(),
12291229
"__access_req__": List(Keyword()),
12301230
"__access_grp1__": List(Keyword()),

0 commit comments

Comments
 (0)