summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-02-14 01:53:44 +0300
committeremkael <emkael@tlen.pl>2019-02-14 01:53:44 +0300
commit865bea5681e08faebddea1e85d3294c25a4ae942 (patch)
treed8c8f8907283aff3d0f8358f408ca9875ba3b075
parent72ad1daecf81e2e6c7560badc798652fbcc96038 (diff)
Separating players' nationalities
-rw-r--r--fetcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetcher.py b/fetcher.py
index b0a7d6e..4f4eee4 100644
--- a/fetcher.py
+++ b/fetcher.py
@@ -107,7 +107,7 @@ class Session(object):
pair_number = int(pair_link.group(1))
if pair_number not in self.tournament.pairs:
names = [a.text for a in row.select('a[href]') if 'person.asp' in a['href']]
- nationalities = row.select('td')[-2].text
+ nationalities = row.select('td')[-2].text.split(' - ')
pair = Pair(pair_number, names, nationalities, self.tournament)
self.tournament.pairs[pair_number] = pair
for row in self.content.select('tr tr'):