summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-12-31 13:11:23 +0100
committeremkael <emkael@tlen.pl>2019-12-31 13:11:23 +0100
commit69d869a96f4d608e55dc305e9f70f0d505c9d5d9 (patch)
tree92dd395b30513e870c956ace0a0cf5ea7340af79 /jfr_playoff
parent8230739ccf52970a61c68f414f0cf2812b79f766 (diff)
Logging details and code formatting
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/data/__init__.py5
-rw-r--r--jfr_playoff/db.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/jfr_playoff/data/__init__.py b/jfr_playoff/data/__init__.py
index 8c94466..3e63e98 100644
--- a/jfr_playoff/data/__init__.py
+++ b/jfr_playoff/data/__init__.py
@@ -74,7 +74,10 @@ class PlayoffData(object):
self.match_info = {}
for phase in self.phases:
for match in phase['matches']:
- match_info = MatchInfo(match, self.teams, self.database, self.aliases)
+ PlayoffLogger.get('data').info(
+ 'getting match info for #%d', match['id'])
+ match_info = MatchInfo(
+ match, self.teams, self.database, self.aliases)
if 'link' in phase:
match_info.set_phase_link(phase['link'])
self.match_info[match['id']] = match_info.get_info()
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py
index bca05d2..b85c5a4 100644
--- a/jfr_playoff/db.py
+++ b/jfr_playoff/db.py
@@ -24,7 +24,8 @@ class PlayoffDB(object):
return self.db_cursor
def __execute_query(self, db_name, sql, params):
- PlayoffLogger.get('db').info('query (%s): %s %s', db_name, sql.replace('\n', ' '), params)
+ PlayoffLogger.get('db').info(
+ 'query (%s): %s %s', db_name, sql.replace('\n', ' '), params)
self.db_cursor.execute(sql.replace('#db#', db_name), params)
def fetch(self, db_name, sql, params):