From f48d5104634b45aec04b3b3f552e99a7bf2b5b14 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 26 Feb 2023 14:24:44 +0330 Subject: fixed a bug with the t keybinding where we were using the entire line as the task name --- pyproject.toml | 2 +- tunneltop/tunneltop.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 12d10b6..be76317 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tunneltop" -version = "0.3.4" +version = "0.3.5" description = "A top-like tunnel manager" authors = ["terminaldweller "] license = "GPL-3.0" diff --git a/tunneltop/tunneltop.py b/tunneltop/tunneltop.py index 05363f0..ecbbaa8 100755 --- a/tunneltop/tunneltop.py +++ b/tunneltop/tunneltop.py @@ -9,6 +9,7 @@ import os import signal import sys import typing + import tomllib @@ -505,8 +506,9 @@ class TunnelManager: self.data_cols[name]["disabled"] = "" await asyncio.sleep(0) - def run_single_test(self, task_name) -> None: + def run_single_test(self, line_content) -> None: """Set the counter to 0 so the scheduler will run the test""" + task_name: str = line_content[: line_content.find(" ")] if task_name in self.scheduler_table: self.scheduler_table[task_name] = 0 else: -- cgit v1.2.3