Use the new copy argument to filter_response

This commit is contained in:
tcely 2025-01-09 13:53:12 -05:00 committed by GitHub
parent 274f19fa15
commit 1ff8dfda98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1154,7 +1154,7 @@ class Media(models.Model):
data = json.loads(self.metadata or "")
compact_json = json.dumps(data, separators=(',', ':'), default=json_serial)
filtered_data = filter_response(data)
filtered_data = filter_response(data, True)
filtered_json = json.dumps(filtered_data, separators=(',', ':'), default=json_serial)
except Exception as e:
log.exception('reduce_data: %s', e)