From 3a893a75390288ed0bc55dd1413d973f0b611ac4 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 8 Jun 2017 02:20:34 +0200 Subject: Captions for data table color codes --- ranking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ranking.py') diff --git a/ranking.py b/ranking.py index da9becd..e417350 100644 --- a/ranking.py +++ b/ranking.py @@ -28,7 +28,7 @@ for row in ranking: row[category + '-change-class'] = 'default' table = bs4(file('templates/ranking.html'), 'lxml') -table_body = table.select('tbody')[0] +table_body = table.select('table.data-table tbody')[0] table_row = table_body.select('tr')[0].extract() table.select('.page-header h2 small')[0].string = subtitle -- cgit v1.2.3