mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
fix: Fix broken Activity export
Unexpected Series field no longer added when Activity does not belong to a series
This commit is contained in:
@@ -38,7 +38,7 @@ class FlattenedModelSerializer(serializers.ModelSerializer):
|
||||
# Keys in result dictionary are of format `key[.subkey[.subsubkey ...]]`
|
||||
data_out[f'{key}.{sub_key}'] = sub_value
|
||||
|
||||
else:
|
||||
elif value is not None:
|
||||
data_out[key] = value
|
||||
|
||||
return data_out
|
||||
|
||||
Reference in New Issue
Block a user