Removing report wrapping section

* Doesn't work properly with background processes
This commit is contained in:
2Shirt 2018-12-06 00:10:51 -07:00
parent 74bb31e795
commit 30ba651674
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1,9 +1,7 @@
# Wizard Kit: Functions - Sensors
import itertools
import json
import re
import shutil
from functions.tmux import *
@ -59,14 +57,6 @@ def generate_report(sensor_data, *temp_labels, colors=True):
report.append(_line)
report.append(' ')
# Wrap lines if necessary
screen_size = shutil.get_terminal_size()
rows = screen_size.lines - 1
if len(report) > rows and screen_size.columns > 55*2:
report = list(itertools.zip_longest(
report[:rows], report[rows:], fillvalue=''))
report = [join_columns(a, b) for a, b in report]
# Handle empty reports (i.e. no sensors detected)
if not report:
report = [