From 60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f Mon Sep 17 00:00:00 2001 From: goatchurch Date: Sat, 1 Aug 2009 07:31:27 +0100 Subject: [svn] now with ability to make new svx file --- core/views_logbooks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/views_logbooks.py') 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 -- cgit v1.2.3