diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2019-03-06 23:20:34 +0000 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2019-03-06 23:20:34 +0000 |
commit | 9fc80bed35a03295fad492601f802cab830144ae (patch) | |
tree | 0be95a5e56fe69e403c934151d90a301c92ddf0e /parsers/people.py | |
parent | 59f8647e0faaa37cc250db7dd2670fd7e0c4db5b (diff) | |
download | troggle-9fc80bed35a03295fad492601f802cab830144ae.tar.gz troggle-9fc80bed35a03295fad492601f802cab830144ae.tar.bz2 troggle-9fc80bed35a03295fad492601f802cab830144ae.zip |
Make the logbook parser a little more sane
Move the parser to expo mapping to settings
Set a default parser
Iterate over the expo years rather than the mapping list!
Diffstat (limited to 'parsers/people.py')
-rw-r--r-- | parsers/people.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsers/people.py b/parsers/people.py index bc18472..3c3fc03 100644 --- a/parsers/people.py +++ b/parsers/people.py @@ -50,7 +50,7 @@ def LoadPersonsExpos(): header = dict(zip(headers, range(len(headers)))) # make expeditions - print "Loading expeditions" + print("Loading expeditions") years = headers[5:] for year in years: @@ -61,7 +61,7 @@ def LoadPersonsExpos(): # make persons - print "Loading personexpeditions" + print("Loading personexpeditions") #expoers2008 = """Edvin Deadman,Kathryn Hopkins,Djuke Veldhuis,Becka Lawson,Julian Todd,Natalie Uomini,Aaron Curtis,Tony Rooke,Ollie Stevens,Frank Tully,Martin Jahnke,Mark Shinwell,Jess Stirrups,Nial Peters,Serena Povia,Olly Madge,Steve Jones,Pete Harley,Eeva Makiranta,Keith Curtis""".split(",") #expomissing = set(expoers2008) @@ -127,7 +127,7 @@ def GetPersonExpeditionNameLookup(expedition): res = { } duplicates = set() - print "Calculating GetPersonExpeditionNameLookup for", expedition.year + print("Calculating GetPersonExpeditionNameLookup for " + expedition.year) personexpeditions = models.PersonExpedition.objects.filter(expedition=expedition) for personexpedition in personexpeditions: possnames = [ ] |