fixes if clause

if used as NOT we need to use AND instead of OR
also we need to test if rating is bigger than 10, not smaller
rick 7 months ago
parent eb3520ed92
commit f307ba1351

@ -78,10 +78,10 @@ def get_input():
curep = int(curep)
maxep = int(maxep)
rating = int(rating)
if state != 'planning' or state != 'running' or state != 'finished' or state != 'dropped':
if state != 'planning' and state != 'running' and state != 'finished' and state != 'dropped':
sys.exit('Please use one of the following Paramters for State: planning, running, finished, dropped')
elif rating < 10:
elif rating > 10:
sys.exit('Rating can only be a number between 0 and 10')
db_input = (id, name, curep, maxep, state, rating)