Skip to content

Commit

Permalink
go back
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Nov 23, 2023
1 parent cb83536 commit 0948219
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions embark/reporter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,19 @@ def get_accumulated_reports(request):
result.pop('firmware', None)
result.pop('emba_command', None)

# architecture
architecture = result.pop('architecture_verified', '{}')
if isinstance(architecture, dict):
# clean-up for architecture descriptions
for key_, value_ in architecture.items():
if value_.lower() == 'el':
charfields['architecture_verified'] += f"{key_}-Little Endian "
elif value_.lower() == 'eb':
charfields['architecture_verified'] += f"{key_}-Big Endian "
else:
charfields['architecture_verified'] += f"{key_}-{value_} "
else:
charfields['architecture_verified'] = str(architecture)
# architecture FIXME
# architecture = result.pop('architecture_verified', '{}')
# if isinstance(architecture, dict):
# # clean-up for architecture descriptions
# for key_, value_ in architecture.items():
# if value_.lower() == 'el':
# data['architecture_verified'] += f"{key_}-Little Endian "
# elif value_.lower() == 'eb':
# data['architecture_verified'] += f"{key_}-Big Endian "
# else:
# data['architecture_verified'] += f"{key_}-{value_} "
# else:
# data['architecture_verified'] = str(architecture)

# Get counts for all strcpy_bin and system_bin values
system_bin = json.loads(result.pop('system_bin', '{}'))
Expand Down

0 comments on commit 0948219

Please sign in to comment.