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
importcommandsimportgroupsimportrankimportsysimportexportimportclearcommands.add("help", "", "displays all cli commands")
commands.add("addgroup", "name, members", "adds a group file to the local database")
commands.add("score", "name", "enters ranking sequence for a given group")
commands.add("rank", "category", "lists groups from highest to lowest score in the given category")
commands.add("export", "", "exports rankings for all categories into a CSV file")
commands.add("clear", "", "clears filetree")
args=sys.argviflen(args) <2:
commands.display()
exit()
c=args[1].lower()
ifc=="help":
commands.display()
ifc=="addgroup":
name=args[2]
members=args[3]
groups.add(name, members)
ifc=="score":
name=args[2]
groups.rank(name)
ifc=="rank":
category=args[2].lower()
rank.rank(category)
ifc=="export":
export.exportAll()
ifc=="clear":
clear.clear()
ifnotcommands.commandContains(c):
print("invalid command: "+c)
exit()
The text was updated successfully, but these errors were encountered:
Make dis da code dud
The text was updated successfully, but these errors were encountered: