Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Oct 17, 2024
1 parent bdb784e commit d40b101
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions mkhockeytool.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def get_user_input(txt):
sub_sub_keep_loop = True
while (sub_sub_keep_loop):
subsubmenuact = get_user_input(
"E: Back to Hockey Database Tool\n1: Export Hockey Database to Hockey XML\n2: Export Hockey Database to Hockey SGML\n3: Export Hockey Database to Hockey JSON\n4: Export Hockey Database to Hockey Py\n5: Export Hockey Database to Hockey Py Alt\n6: Export Hockey Database to Hockey Py OOP\n7: Export Hockey Database to Hockey Py OOP Alt\n8: Export Hockey Database to Hockey SQL\n9: Export Hockey Database to Hockey Database File\nWhat do you want to do? ")
" E: Back to Hockey Database Tool\n 1: Export Hockey Database to Hockey XML\n 2: Export Hockey Database to Hockey SGML\n 3: Export Hockey Database to Hockey JSON\n 4: Export Hockey Database to Hockey YAML\n 5: Export Hockey Database to Hockey Py\n 6: Export Hockey Database to Hockey Py Alt\n 7: Export Hockey Database to Hockey Py OOP\n 8: Export Hockey Database to Hockey Py OOP Alt\n 9: Export Hockey Database to Hockey SQL\n10: Export Hockey Database to Hockey Database File\nWhat do you want to do? ")
if (subsubmenuact.upper() != "E" and not subsubmenuact.isdigit()):
print("ERROR: Invalid Command")
subsubmenuact = "E"
Expand All @@ -800,31 +800,36 @@ def get_user_input(txt):
pyhockeystats.MakeHockeyJSONFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "4"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database YAML File Name to Export: ")
pyhockeystats.MakeHockeyYAMLFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "5"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database Python File Name to Export: ")
pyhockeystats.MakeHockeyPythonFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "5"):
elif (subsubmenuact == "6"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database Python File Name to Export: ")
pyhockeystats.MakeHockeyPythonAltFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "6"):
elif (subsubmenuact == "7"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database Python File Name to Export: ")
pyhockeystats.MakeHockeyPythonOOPFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "7"):
elif (subsubmenuact == "8"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database Python File Name to Export: ")
pyhockeystats.MakeHockeyPythonOOPAltFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "8"):
elif (subsubmenuact == "9"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database SQL File Name to Export: ")
pyhockeystats.MakeHockeySQLFileFromHockeyArray(
hockeyarray, HockeyDatabaseFN)
elif (subsubmenuact == "9"):
elif (subsubmenuact == "10"):
HockeyDatabaseFN = get_user_input(
"Enter Hockey Database File Name to Export: ")
pyhockeystats.MakeHockeyDatabaseFromHockeyArray(
Expand Down

0 comments on commit d40b101

Please sign in to comment.