started main and fixed issue #7

This commit is contained in:
2019-07-31 16:38:47 +02:00
parent 55a1e7c9b9
commit 44a5fbc4b7
3 changed files with 21 additions and 3 deletions
+3 -3
View File
@@ -10,15 +10,15 @@ def user_input():
user_add = input()
if user_add == "subject":
subject = input("Which subject do you want to add? \n")
return "input", subject
return "input", "subject", subject
elif user_add == "category":
subject = input("To which subject do you want to add the category? \n")
category = input("Which category do you want to add? \n")
rating = float(input("Rating? \n"))
return "input", subject, category, rating
return "input", "category", subject, category, rating
elif user_add == "grade":
subject = input("To which subject do you want to add the grade? \n")
category = input("To which category do you want to add it? \n")
grade = input("Grade? \n")
grade_name = input("What's the name of the grade? \n")
return "input", subject, category, grade, grade_name
return "input", "grade", subject, category, grade, grade_name