diff options
author | goatchurch <devnull@localhost> | 2009-08-01 07:31:27 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-08-01 07:31:27 +0100 |
commit | 907746289386da6b6342752a0628742905a59a69 (patch) | |
tree | 8e5a438392ddace01694734a3420877e42da79e1 /core/views_logbooks.py | |
parent | 7158a79a347d99fb1f8e94e034f2d79e08ad9172 (diff) | |
download | troggle-907746289386da6b6342752a0628742905a59a69.tar.gz troggle-907746289386da6b6342752a0628742905a59a69.tar.bz2 troggle-907746289386da6b6342752a0628742905a59a69.zip |
[svn] now with ability to make new svx file
Diffstat (limited to 'core/views_logbooks.py')
-rw-r--r-- | core/views_logbooks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/views_logbooks.py b/core/views_logbooks.py index 07b5d57..3d7d77f 100644 --- a/core/views_logbooks.py +++ b/core/views_logbooks.py @@ -81,9 +81,9 @@ def GetPersonChronology(personexpedition): survexpath = personrole.survex_block.survexpath
if b.get(survexpath):
- b[survexpath] += ", " + str(personrole.role)
+ b[survexpath] += ", " + str(personrole.nrole)
else:
- b[survexpath] = str(personrole.role)
+ b[survexpath] = str(personrole.nrole)
# build up the tables
rdates = res.keys()
@@ -95,7 +95,7 @@ def GetPersonChronology(personexpedition): persontrips = res[rdate].get("persontrips", [])
personroles = list(res[rdate].get("personroles", {}).items())
for n in range(max(len(persontrips), len(personroles))):
- res2.append(((n == 0 and rdate or ""), (n < len(persontrips) and persontrips[n]), (n < len(personroles) and personroles[n])))
+ res2.append(((n == 0 and rdate or "--"), (n < len(persontrips) and persontrips[n]), (n < len(personroles) and personroles[n])))
return res2
|