Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarak committed Dec 17, 2024
1 parent 58730e1 commit cc624d3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions reframe/frontend/reporting/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def _extract_sess_info(s):
@time_function
def _mass_json_decode(json_objs):
data = '[' + ','.join(json_objs) + ']'
getlogger().debug(f'decoding {len(data)} bytes')
getlogger().debug(
f'decoding JSON raw data of length {len(data)}'
)
return json.loads(data)

session_infos = {}
Expand All @@ -254,10 +256,10 @@ def _mass_json_decode(json_objs):

# Find the UUIDs to decode fully by inspecting only the session info
uuids = []
for info in _mass_json_decode(session_infos.values()):
for sess_info in _mass_json_decode(session_infos.values()):
try:
if self._db_filter_json(sess_filter, info):
uuids.append(info['uuid'])
if self._db_filter_json(sess_filter, sess_info):
uuids.append(sess_info['uuid'])
except Exception:
continue

Expand Down

0 comments on commit cc624d3

Please sign in to comment.