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
parent
f5e95c7af7
commit
3e24773476
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue