示例#1
0
 def __init__(self, *args, **kwargs):
     self.url = kwargs.pop("url")
     super().__init__(*args, **kwargs)
     self.get_data()
     self.saved_numseats = SavedMapping("num_seats.json")
示例#2
0
 def __init__(self, election, remote_name):
     self.election = election
     self.remote_name = remote_name
     self.local_area = None
     self.saved_matches = SavedMapping("division_matches.json")
示例#3
0
 def __init__(self, party_name):
     self.party_name = party_name
     self.known_names_to_ids = SavedMapping('party_names.json')
 def __init__(self, candidate, ballot_paper):
     self.candidate = candidate
     self.ballot_paper = ballot_paper
     self.membership_map = SavedMapping('membership_map.json')