Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterseth committed Mar 30, 2022
1 parent b5a50ec commit 3abb4ca
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions awx/api/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3937,9 +3937,7 @@ def get(self, request, **kwargs):
map_meta_counter_nested_uuid = {}

prev_non_meta_event = events[0]
to_print = "\n" # remove this
for i, e in enumerate(events):
event_level = models.JobEvent.LEVEL_FOR_EVENT[e['event']] # remove this
if not e['event'] in JobJobEventsChildrenSummary.meta_events:
prev_non_meta_event = e
if not e['uuid']:
Expand Down Expand Up @@ -3971,14 +3969,11 @@ def get(self, request, **kwargs):
z += 1
event_level_after = models.JobEvent.LEVEL_FOR_EVENT[next_non_meta_event['event']]
if event_level_after and event_level_after > event_level_before:
event_level = event_level_after # remove this
puuid = next_non_meta_event['parent_uuid']
else:
event_level = event_level_before # remove this
puuid = prev_non_meta_event['parent_uuid']
if puuid:
map_meta_counter_nested_uuid[e['counter']] = puuid
to_print += f"{' '*event_level} {e['event']} {e['counter']}\n" # remove this
map_counter_children_tally[e['counter']]['rowNumber'] = i
if not puuid:
continue
Expand All @@ -3987,7 +3982,6 @@ def get(self, request, **kwargs):
map_counter_children_tally[map_uuid_counter[puuid]]['numChildren'] += 1
puuid = map_uuid_puuid.get(puuid, None)

# logger.debug(to_print) # remove this
# create new dictionary, dropping events with 0 children
resp = {k: v for k, v in map_counter_children_tally.items() if v['numChildren'] != 0}

Expand Down

0 comments on commit 3abb4ca

Please sign in to comment.