From 2ea219e1b5f3729a75f48f2b7b8274334a7d07c0 Mon Sep 17 00:00:00 2001 From: cronyakatsuki Date: Mon, 2 May 2022 22:51:54 +0200 Subject: [PATCH] Fixed bad line cutting. --- adl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adl.py b/adl.py index 068a94a..94d1f0f 100755 --- a/adl.py +++ b/adl.py @@ -81,7 +81,7 @@ def load_list(account): alist = subprocess.run(["trackma", "-a", account, "list"], stdout=subprocess.PIPE).stdout.decode('utf-8').splitlines() alist.pop(0) - alist = alist[: len(alist) - 3] + alist = alist[: len(alist) - 2] alist = "\n".join(alist) return alist