mirror of
https://github.com/jorgevasquezp/yorchnet_scripts.git
synced 2026-08-16 15:31:10 +00:00
Fixed client code being truncated because it no longer is receiving the string from rofi, which added some unneeded stuff.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user