From caf7841e94d8edc0afaa09bef67a297ec3d9c344 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 17 Feb 2010 14:52:12 +0000 Subject: [PATCH] change hardware css, fix undefined metadata --- css/telecaster.css | 3 +-- station.py | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/css/telecaster.css b/css/telecaster.css index 9676100..30df095 100644 --- a/css/telecaster.css +++ b/css/telecaster.css @@ -61,9 +61,8 @@ div.title { div.hardware { clear: both; - font: 0.8125em/1em Verdana, sans-serif; + font: 0.8125em Verdana, sans-serif; color: #000000; - font-size: 1em; position: absolute; right: 1em; text-align: left; diff --git a/station.py b/station.py index f028723..5909227 100644 --- a/station.py +++ b/station.py @@ -57,11 +57,15 @@ class Conference: self.dict = dict self.title = dict['title'] self.department = dict['department'] + if '....' in self.department or self.department == '': + self.department = 'Undefined' self.conference = dict['conference'] + if '....' in self.conference or self.conference == '': + self.conference = 'Undefined' self.session = dict['session'] self.professor = dict['professor'] if '....' in self.professor or self.professor == '': - self.professor = 'Inconnu' + self.professor = 'Undefined' self.comment = dict['comment'] def get_info(self): -- 2.39.5