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 | 60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f (patch) | |
tree | d8fa1d3e8bb222e4068b694df0dc42ce3aa9980f /core/views_logbooks.py | |
parent | b135ab64e7873169e8a3c973f3ea9d0fbb18e319 (diff) | |
download | troggle-60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f.tar.gz troggle-60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f.tar.bz2 troggle-60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f.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
|