#!/usr/bin/env python3 import pickemCore import pickemAddYahooGames import pickemSynchGames core = pickemCore.Core("Setup of 2020 BUS CFB season") currentLeagueCode = "BUS-NCAAF-20" currentLeagueWeek = 1 currentUserName = "" currentPlayerTag = "" # -- TEST 2020 NeOnYa league ----------------- core.apiClient.insertLeague(currentLeagueWeek, currentLeagueCode, "BUS - 2020", "2020", "AllWinsOnePoint", "20", [1,2,3,4,5,6,7,8,9,10,11,12,13,14]) currentUserName = "******" currentPlayerTag = "Kip" core.apiClient.addPlayerToLeague(currentLeagueCode, currentUserName, currentPlayerTag) core.apiClient.updateUserAccount(currentUserName, currentLeagueCode) currentUserName = "******" currentPlayerTag = "Laine" core.apiClient.addPlayerToLeague(currentLeagueCode, currentUserName, currentPlayerTag) core.apiClient.updateUserAccount(currentUserName, currentLeagueCode) currentUserName = "******" currentPlayerTag = "Ethan" core.apiClient.addPlayerToLeague(currentLeagueCode, currentUserName, currentPlayerTag) core.apiClient.updateUserAccount(currentUserName, currentLeagueCode)
help='Week number') subParser.set_defaults(func=updateTeams) return argParser #============================ # Main #============================ print("----------------------------------------") print(" Pickem Console - {0:s} ".format(VERSION)) print("----------------------------------------") argParser = setupArgumentParsers() # parse and run the subcommand args = argParser.parse_args() if (hasattr(args, 'func')): if (hasattr(args, 'override_user')): core = pickemCore.Core(args.func.__name__, args.override_user, args.override_password) else: core = pickemCore.Core(args.func.__name__) # this runs the function in parser's set_defaults() args.func(args) else: print("Missing sub command name")
#!/usr/bin/env python3 import pickemCore core = pickemCore.Core("Correct 2020 Burlington Mafia default leagues") core.apiClient.updateUserAccount("CusheGoblin", "BurlMafia-NCAAF-20") core.apiClient.updateUserAccount("Cary", "BurlMafia-NCAAF-20") core.apiClient.updateUserAccount("fvedder", "BurlMafia-NCAAF-20") core.apiClient.updateUserAccount("*****@*****.**", "BurlMafia-NCAAF-20")
#!/usr/bin/env python3 import pickemCore import pickemAddYahooGames import pickemSynchGames core = pickemCore.Core("Setup of 2020 Burlington Mafia CFB season") currentLeagueCode = "BurlMafia-NCAAF-20" currentLeagueWeek = 4 currentUserName = "" currentPlayerTag = "" # -- TEST 2020 NeOnYa league ----------------- core.apiClient.insertLeague(currentLeagueWeek, currentLeagueCode, "Burlington Mafia - 2020", "2020", "AllWinsOnePoint", "20", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]) currentUserName = "******" currentPlayerTag = "Kip" core.apiClient.addPlayerToLeague(currentLeagueCode, currentUserName, currentPlayerTag) core.apiClient.updateUserAccount(currentUserName, currentLeagueCode) currentUserName = "******" currentPlayerTag = "Tony" core.apiClient.addPlayerToLeague(currentLeagueCode, currentUserName, currentPlayerTag) core.apiClient.updateUserAccount(currentUserName, currentLeagueCode) currentUserName = "******"