"""
Prints live, upcoming and recent matches of a all games
"""
from gosu_gamers import gg_match
import pymongo
import sys
if sys.version_info[0] < 3:
    raise Exception("Must be using Python 3")

print('running test.py')
print (sys.version_info[0])
"""
from gosu_gamers import gg_team
from gosu_gamers import meta
from gosu_gamers.utils import name_fixer

if __name__ == '__main__':
    dota2scraper = gg_team.Dota2TeamScraper()
    for team in dota2scraper.get_teams():  # get_teams is a generator
        print(team.name)

    # OR
    # Get stored teams in data
print(name_fixer.stored_team_names(meta.DOTA2))
"""

"""
def print_games(what_to_print=None):
    ggms = gg_match.MatchScraper()

    if not what_to_print:
        what_to_print = lambda match: match

    print('Live:')
    for match in ggms.find_live_matches():
        print(what_to_print(match))
    print(''.center(79, '='))

    print('Upcoming:')
    for match in ggms.find_upcoming_matches():
        print(what_to_print(match))
    print(''.center(79, '='))

    print('Recent:')
    for match in ggms.find_recent_matches():
        print(what_to_print(match))
    print(''.center(79, '='))


if __name__ == '__main__':
    print("ONLY TITLES:")
    print_games(what_to_print=lambda match: match.title)
    print("ONLY live in")
    print_games(what_to_print=lambda match: match.live_in)
"""
