diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-30 00:24:36 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-30 00:24:36 +0100 |
commit | 03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0 (patch) | |
tree | 84e8895c0caca3b55e65f12737a2c8d14435fed6 /parsers/survex.py | |
parent | e5cf1b5289d908133bcfbc7054b0eda1e658dbfd (diff) | |
download | troggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.tar.gz troggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.tar.bz2 troggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.zip |
chipping away bug in personexpedition, remove role
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index ea1e061..569a4b4 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -26,6 +26,11 @@ It does also NOT scan the Loser repo for all the svx files - though it should ! todo = '''Also walk the entire tree in the :loser: repo looking for unconnected survex files - add them to the system so that they can be reported-on - produce a parser report and create a troggle report page (some are OK, e.g. futility series replaced by ARGE survey in 115) + +- If you look at e.g. http://expo.survex.com/survexfile/161#T_caves-1623/161/lhr/alllhr + you will see than have the team members are recognised by this parser, but not recognised by the + wider troggle system (the name is not a hyperlink) - apparently randomly. + GetPersonExpeditionNameLookup() needs to be fixed. ''' survexblockroot = None ROOTBLOCK = "rootblock" @@ -201,7 +206,8 @@ class LoadingSurvex(): personexpedition = survexblock.expedition and GetPersonExpeditionNameLookup(survexblock.expedition).get(tm.lower()) if (personexpedition, tm) not in teammembers: teammembers.append((personexpedition, tm)) - personrole = SurvexPersonRole(survexblock=survexblock, nrole=mteammember.group(1).lower(), personexpedition=personexpedition, personname=tm) + personrole = SurvexPersonRole(survexblock=survexblock, personexpedition=personexpedition, personname=tm) +# personrole = SurvexPersonRole(survexblock=survexblock, nrole=mteammember.group(1).lower(), personexpedition=personexpedition, personname=tm) personrole.save() personrole.expeditionday = survexblock.expeditionday if personexpedition: |