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
|
# Wizard Kit: Functions - Sensors
|
||||||
|
|
||||||
import itertools
|
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import shutil
|
|
||||||
|
|
||||||
from functions.tmux import *
|
from functions.tmux import *
|
||||||
|
|
||||||
|
|
@ -59,14 +57,6 @@ def generate_report(sensor_data, *temp_labels, colors=True):
|
||||||
report.append(_line)
|
report.append(_line)
|
||||||
report.append(' ')
|
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)
|
# Handle empty reports (i.e. no sensors detected)
|
||||||
if not report:
|
if not report:
|
||||||
report = [
|
report = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue