Files
004_comission/ych1990101/task1-optimized/app/notebook/utils/getDropdownMenu.py
louiscklaw cd995ed8bd update,
2025-01-31 20:05:06 +08:00

27 lines
1.0 KiB
Python

#!
import os,sys
from api_footylogic_com.match.statistics.MarketsInfo import getMarketsInfoJson
from api_footylogic_com.match.h2h.RecentformInformation import getRecentformInformationJson
from api_footylogic_com.tournament.Standings import getStandingsJson
from api_footylogic_com.tournament.Competitions import getCompetitionsJson, lookupCompetitionId
from api_footylogic_com.match.h2h.Banner import getBannerJson, getTeams, getCompetitionName
from api_footylogic_com.match.seasonalstats.DropdownFilters import getDropdownFilters
from utils.Statistics import getTopBottomWinningAndLoseing
from utils.WriteExcel import writeExcel
from utils.GetScreenshot import getScreenshot
import nest_asyncio
import asyncio
import ipywidgets as widgets
from bet_hkjc_com.football.getJSON import getMatchesJson, getMatchesList
def genMatchList():
matches_json = getMatchesJson()
matches_list = getMatchesList(matches_json)
labels = []
for match_label in matches_list.keys():
labels.append(match_label)
return [labels, matches_list]