Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1867 | mapping sort weight to float for che…
Browse files Browse the repository at this point in the history
…cksum generation
  • Loading branch information
snyaggarwal committed Jul 9, 2024
1 parent 8637d39 commit ab3aebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def get_smart_checksum_fields(self):
def get_standard_checksum_fields_for_resource(data):
return {
**Mapping.get_smart_checksum_fields_for_resource(data),
'sort_weight': float(get(data, 'sort_weight', 0)) or None,
**{
field: get(data, field) or None for field in [
'extras',
Expand Down

0 comments on commit ab3aebe

Please sign in to comment.