lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 6126b5871114b612ecb12f5471582853507ab12b
parent 29a3dbcc8208d3b9907d88b2c5b34fbb0f935717
Author: rsiddharth <rsd@gnu.org>
Date:   Fri, 18 Mar 2016 23:12:09 -0400

Update LPiCal.__init__ method.

 - Arg lp_year is stringified before getting copied to self.lp_year.

Addresses issue #8.

Diffstat:
lps_gen.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -115,7 +115,7 @@ class LPiCal(object): def __init__(self, lps_dict, lp_year): self.lps_dict = lps_dict - self.lp_year = lp_year + self.lp_year = str(lp_year) # Matches strings like '09:45 - 10:30: Lorem ipsum dolor sit.' self.timeslot_re = re.compile(r'(\d+:\d+).+?(\d+:\d+):\s*(.+\b)')