Skip to content

Commit e08cf17

Browse files
committed
Fix misplacement of in text box
1 parent d4ce199 commit e08cf17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data_generators.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,6 @@ def gen_text_general_info(xml, r):
432432
if r: # If ReplaysAnalysis is avilable
433433
total_notes_string = util.abbreviate(r.total_notes, min_precision=3)
434434

435-
chart, combo = find_longest_combo(xml)
436-
long_combo_chart = f'"{chart.get("Pack")} -> "{chart.get("Song")}"'
437-
long_combo_str = f"{combo} on {long_combo_chart}"
438-
439435
chart = r.longest_mcombo[1]
440436
long_mcombo_chart = f'"{chart.get("Pack")} -> "{chart.get("Song")}"'
441437
long_mcombo_str = f"{r.longest_mcombo[0]} on {long_mcombo_chart}"
@@ -448,6 +444,10 @@ def gen_text_general_info(xml, r):
448444
first_play_date = min([parsedate(s.findtext("DateTime")) for s in scores])
449445
duration = relativedelta(datetime.now(), first_play_date)
450446

447+
chart, combo = find_longest_combo(xml)
448+
long_combo_chart = f'"{chart.get("Pack")} -> "{chart.get("Song")}"'
449+
long_combo_str = f"{combo} on {long_combo_chart}"
450+
451451
return "<br>".join([
452452
f"You started playing {duration.years} years {duration.months} months ago",
453453
f"Total hours spent playing: {round(hours)} hours",

0 commit comments

Comments
 (0)