diff options
author | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 09:04:59 +0100 |
---|---|---|
committer | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 09:04:59 +0100 |
commit | f21cddb2d04bcdfbb8aa5e93501902460087dee0 (patch) | |
tree | fb29934eedff3c09551774a5325b61f77f5346ba /parsers/survex.py | |
parent | 735b729a414fdda2e4b832c58707decb19aaae6c (diff) | |
download | troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.tar.gz troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.tar.bz2 troggle-f21cddb2d04bcdfbb8aa5e93501902460087dee0.zip |
modelviz added
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 3 |
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: |