Fixed client code being truncated because it no longer is receiving the string from rofi, which added some unneeded stuff.

master
Jorge Vásquez Pérez 5 years ago
parent 5d125a6903
commit 8117e40272

@ -37,8 +37,8 @@ def new_project():
client = input("enter client code:") 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 = 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[2:5].upper()
#client = client[0:3].upper() client = client[0:3].upper()
project_codes = get_project_codes() project_codes = get_project_codes()
client_project_n = str( project_codes ).count(client) + 1 client_project_n = str( project_codes ).count(client) + 1
project_n = int(project_codes[-1][2:5])+1 project_n = int(project_codes[-1][2:5])+1

Loading…
Cancel
Save