# Path: plugins/league.py
# class DiskBackend:
# class Plugin:
#     def __init__(self):
#     def get_games(self):
#     def write_games(self, competition):
#     def filter_played_games(self, competition):
#     def write_results(self, match):
#     def get_result_files(self):
#     def _get_result_file_for(self, match):
#     def mark_result_as_processed(self, name):
#     def __init__(self, bus):
#     def save(self):
#     def load(self, state):
#     def update_players(self):
#         def pstring(ps):
#     def clear_players(self):
#     def start_competition(self, data):
#     def win_game(self, data):
#     def cancel_competition(self, data):
#     def get_player_points_per_match(self):
#     def calc_points(self):
#     def get_menu_entries(self):
#         def q(ev, data=None):
#             def f():


import requests
import threading
import logging
import foos.config as config
import json
from plugins.league import diskbackend

logger = logging.getLogger(__name__)


class Plugin:
    def __init__(self, bus):
        bus.subscribe(self.process_event, thread=False, subscribed_events=['results_written'])

# Path: plugins/league.py
# class DiskBackend:
# class Plugin:
#     def __init__(self):
#     def get_games(self):
#     def write_games(self, competition):
#     def filter_played_games(self, competition):
#     def write_results(self, match):
#     def get_result_files(self):
#     def _get_result_file_for(self, match):
#     def mark_result_as_processed(self, name):
#     def __init__(self, bus):
#     def save(self):
#     def load(self, state):
#     def update_players(self):
#         def pstring(ps):
#     def clear_players(self):
#     def start_competition(self, data):
#     def win_game(self, data):
#     def cancel_competition(self, data):
#     def get_player_points_per_match(self):
#     def calc_points(self):
#     def get_menu_entries(self):
#         def q(ev, data=None):
#             def f():


# Path: plugins/league_sync.py
import requests
import threading
import logging
import foos.config as config
import json
from plugins.league import diskbackend


logger = logging.getLogger(__name__)


class Plugin:
    def __init__(self, bus):
        bus.subscribe(self.process_event, thread=False, subscribed_events=['results_written'])

        self.diskbe = diskbackend