mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Clearer logic for RA inverted fields
This commit is contained in:
@@ -690,7 +690,7 @@ class RiskAssessment(models.Model, RevisionMixin):
|
||||
'special_structures': False,
|
||||
'suspended_structures': False,
|
||||
}
|
||||
#inverted_fields = filter(lambda key,value: value, expected_values.items())
|
||||
inverted_fields = {key: value for (key, value) in expected_values.items() if not value}.keys()
|
||||
|
||||
class Meta:
|
||||
ordering = ['event']
|
||||
|
||||
Reference in New Issue
Block a user