diff options
author | terminaldweller <thabogre@gmail.com> | 2023-02-26 10:54:44 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2023-02-26 10:54:44 +0000 |
commit | f48d5104634b45aec04b3b3f552e99a7bf2b5b14 (patch) | |
tree | 6eb27ea234e6152cde131b8f133370341db0fedd | |
parent | a fix for the disappearing tests (diff) | |
download | tunneltop-f48d5104634b45aec04b3b3f552e99a7bf2b5b14.tar.gz tunneltop-f48d5104634b45aec04b3b3f552e99a7bf2b5b14.zip |
fixed a bug with the t keybinding where we were using the entire line as the task name
-rw-r--r-- | pyproject.toml | 2 | ||||
-rwxr-xr-x | 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 <devi@terminaldweller.com>"] 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: |