From 17175637dcd90adaa2d59c5ef127d9e710a2e716 Mon Sep 17 00:00:00 2001 From: goatchurch Date: Tue, 9 Jun 2009 18:59:54 +0100 Subject: [svn] codemirror --- parsers/logbooks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'parsers/logbooks.py') diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 281a1b2..ebfd54e 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -166,7 +166,7 @@ def Parseloghtml01(year, expedition, txt): tripparas = re.findall("([\s\S]*?)(?=)?(.*?)(.*)$(?i)", trippara) - assert s, trippara[:100] + assert s, trippara[:300] tripheader, triptext = s.group(1), s.group(2) mtripid = re.search(']*>(T/?U.*)', triptext) if mtu: tu = mtu.group(1) @@ -203,9 +203,9 @@ def Parseloghtml01(year, expedition, txt): ltriptext = re.sub("", "'''", ltriptext) - #print ldate, trippeople.strip() + print ldate, trippeople.strip() # could includ the tripid (url link for cross referencing) - EnterLogIntoDbase(date = ldate, place = tripcave, title = triptitle, text = ltriptext, trippeople=trippeople, expedition=expedition, logtime_underground=0) + EnterLogIntoDbase(date=ldate, place=tripcave, title=triptitle, text=ltriptext, trippeople=trippeople, expedition=expedition, logtime_underground=0) def Parseloghtml03(year, expedition, txt): @@ -254,6 +254,7 @@ yearlinks = [ ("1995", "1995/log.htm", Parseloghtml01), ("1994", "1994/log.htm", Parseloghtml01), ("1993", "1993/log.htm", Parseloghtml01), + ("1992", "1992/log.htm", Parseloghtml01), ] def SetDatesFromLogbookEntries(expedition): -- cgit v1.2.3