You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In test.py, after giving input 1 (with space), run method initiate #63
when this code ask for input:- "methods - 1 for debug, 0 for run :"
Give input:- 1
This input not run debug, it initiate run method only.
Expected result:- Should initiate debug method as input is given 1.
Actual result:- It initiate run method.
More information:-
The problem is actually due to input treating as string, so space also matter. If user give input 1, test.py treat it as
" 1", which is not equal to "1". so the code goes on else condition and run method initiate.
method = input("methods - 1 for debug, 0 for run :")
if method == "1":
debug("sample-anyname", "xyz")
else:
run("sample-anyname", "xyz")
Activity
Resolve issue ControlCore-Project#63
pradeeban commentedon Mar 15, 2023
Thanks for the catch, @shivangvijay. I have merged your PR.
pradeeban commentedon Mar 15, 2023
Fixed in #61.