From 8117e402720237d06e2410e98da35e9fcff2625f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Sun, 15 Nov 2020 10:36:20 -0800 Subject: [PATCH] Fixed client code being truncated because it no longer is receiving the string from rofi, which added some unneeded stuff. --- ynet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ynet b/ynet index d5fac75..e0f1ca7 100755 --- a/ynet +++ b/ynet @@ -37,8 +37,8 @@ def new_project(): client = input("enter client code:") #client = str(subprocess.check_output("echo '" + codes + "' | rofi -dmenu -i -format s -sep ',' -p 'current clients are'", shell=True)) - client = client[2:5].upper() - #client = client[0:3].upper() + #client = client[2:5].upper() + client = client[0:3].upper() project_codes = get_project_codes() client_project_n = str( project_codes ).count(client) + 1 project_n = int(project_codes[-1][2:5])+1