Merge branch 'develop' into feature

This commit is contained in:
Jeremy Stretch
2024-08-01 09:16:01 -04:00
4 changed files with 39 additions and 26 deletions

View File

@@ -630,10 +630,11 @@ class SystemView(UserPassesTestMixin, View):
# Raw data export
if 'export' in request.GET:
params = [param.name for param in PARAMS]
data = {
**stats,
'config': {
k: config.data[k] for k in sorted(config.data)
k: getattr(config, k) for k in sorted(params)
},
}
response = HttpResponse(json.dumps(data, indent=4), content_type='text/json')