Verified Commit 7ce34dec authored by Markus Shepherd's avatar Markus Shepherd 🙈
Browse files

small changes

parent 1fe74849
......@@ -578,13 +578,11 @@ class BggSpider(Spider):
),
)
for rank in game.xpath('statistics/ratings/ranks/rank[@type="family"]'):
for rank in game.xpath('statistics/ratings/ranks/rank[@type = "family"]'):
add_rank = {
"id": parse_int(rank.xpath("@id").extract_first()),
"name": rank.xpath("@name").extract_first(),
"friendlyname": _remove_rank(
rank.xpath("@friendlyname").extract_first()
),
"game_type": rank.xpath("@name").extract_first(),
"game_type_id": parse_int(rank.xpath("@id").extract_first()),
"name": _remove_rank(rank.xpath("@friendlyname").extract_first()),
"rank": parse_int(rank.xpath("@value").extract_first()),
"bayes_rating": parse_float(
rank.xpath("@bayesaverage").extract_first()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment