1
0
Fork 0

fix reverted mode_label and mode_data

when linting db code I unintentionally swapped the return of mode_data with mode_label, causing NaN in stats.js when trying to calculate the mode doughnut.

Reverts this bug.  Fixes #325

Signed-off-by: Corey Shields <cshields@gmail.com>
merge-requests/412/head 0.20
Corey Shields 2019-09-01 19:53:03 -04:00
parent f5e95c7af7
commit 3e24773476
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def calculate_mode_stats(transmitters):
mode_data_sorted, mode_label_sorted = \
list(zip(*sorted(zip(mode_data, mode_label), reverse=True)))
return mode_label_sorted, mode_data_sorted
return mode_data_sorted, mode_label_sorted
def calculate_band_stats(transmitters):