Skip to content

Commit

Permalink
fix Seth example of on_tag_review
Browse files Browse the repository at this point in the history
  • Loading branch information
Drevarr committed Nov 25, 2024
1 parent 8770567 commit 17e4826
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion output_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2156,9 +2156,13 @@ def build_on_tag_review(death_on_tag, tid_date_time):
header = "|!Player |!Profession | !Avg Dist| !On-Tag<br>{{deadCount}} | !Off-Tag<br>{{deadCount}} | !After-Tag<br>{{deadCount}} | !Run-Back<br>{{deadCount}} | !Total<br>{{deadCount}} |!OffTag Ranges|h"
rows.append(header)
for name_prof in death_on_tag:
print(name_prof, "on tag review")
player = death_on_tag[name_prof]['name']
profession = death_on_tag[name_prof]['profession']
avg_dist = round(sum(death_on_tag[name_prof]['distToTag']) / len(death_on_tag[name_prof]['distToTag']))
if len(death_on_tag[name_prof]['distToTag']):
avg_dist = round(sum(death_on_tag[name_prof]['distToTag']) / len(death_on_tag[name_prof]['distToTag']))
else:
avg_dist = "n/a"
on_tag = death_on_tag[name_prof]['On_Tag']
off_tag = death_on_tag[name_prof]['Off_Tag']
after_tag = death_on_tag[name_prof]['After_Tag_Death']
Expand Down

0 comments on commit 17e4826

Please sign in to comment.