summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorgoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-09-11 09:04:59 +0100
committergoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-09-11 09:04:59 +0100
commitb80168c099b5805dfc9c1fee576d00cabc31e2d2 (patch)
tree3da6204d8fdba45d4d11ada481abda77747f6118 /parsers/survex.py
parentece3b79e5d5690c96630b598493009b1c924c8f7 (diff)
downloadtroggle-b80168c099b5805dfc9c1fee576d00cabc31e2d2.tar.gz
troggle-b80168c099b5805dfc9c1fee576d00cabc31e2d2.tar.bz2
troggle-b80168c099b5805dfc9c1fee576d00cabc31e2d2.zip
modelviz added
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index e9b018d..985d4e5 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -123,8 +123,9 @@ def RecursiveLoad(survexblock, survexfile, fin, textlines):
survexblock.date = re.sub("\.", "-", line)
expeditions = models.Expedition.objects.filter(year=line[:4])
if expeditions:
+ assert len(expeditions) == 1
survexblock.expedition = expeditions[0]
-
+ survexblock.expeditiondate = survexblock.expedition.get_expedition_day(survexblock.date)
elif re.match("team$(?i)", cmd):
mteammember = re.match("(Insts|Notes|Tape|Dog|Useless|Pics|Helper|Disto|Consultant)\s+(.*)$(?i)", line)
if mteammember: