Removing report wrapping section
* Doesn't work properly with background processes
This commit is contained in:
parent
74bb31e795
commit
30ba651674
1 changed files with 0 additions and 10 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue