Ejemplo n.º 1
0
 def getcachedLeague(self, leagueid):
     league_str = FileIO.fileread(
         os.path.join(
             os.path.join(addon_userdata_cached_leagues,
                          "%s.txt" % (str(leagueid)))))
     league = thesportsdb.league.as_league(eval(league_str))
     return league
Ejemplo n.º 2
0
def get_twitter_history():
    twitter_history = []
    if os.path.exists(twitter_history_file):
        twitter_history = FileIO.fileread(twitter_history_file)
        twitter_history = [
            hashtag for hashtag in twitter_history.split('\n') if hashtag
        ]
    return twitter_history
Ejemplo n.º 3
0
 def getcachedLeagueTeams(self, leagueid):
     team_list_str = FileIO.fileread(
         os.path.join(
             os.path.join(addon_userdata_cached_leagueteams,
                          "%s.txt" % (str(leagueid)))))
     teams_list = [
         thesportsdb.team.as_team(team) for team in eval(team_list_str)
     ]
     return teams_list
Ejemplo n.º 4
0
def get_twitter_history():
    twitter_history = []
    if os.path.exists(twitter_history_file):
        twitter_history = FileIO.fileread(twitter_history_file)
        twitter_history = [hashtag for hashtag in twitter_history.split('\n') if hashtag]
    return twitter_history
	def getcachedTeam(self,teamid):
		team = FileIO.fileread(os.path.join(os.path.join(addon_userdata_cached_teams,"%s.txt" % (str(teamid)))))
		return thesportsdb.team.as_team(eval(team))
	def getcachedLeagueTeams(self,leagueid):
		team_list_str = FileIO.fileread(os.path.join(os.path.join(addon_userdata_cached_leagueteams,"%s.txt" % (str(leagueid)))))
		teams_list = [thesportsdb.team.as_team(team) for team in eval(team_list_str)]
		return teams_list
	def getcachedLeague(self,leagueid):
		league_str = FileIO.fileread(os.path.join(os.path.join(addon_userdata_cached_leagues,"%s.txt" % (str(leagueid)))))
		league = thesportsdb.league.as_league(eval(league_str))
		return league