Fix exports to have consistent results
This commit is contained in:
parent
0cd6394b72
commit
8f5daac4a7
@ -82,7 +82,8 @@ class FtreeWriter:
|
||||
self.option_box.parse_options()
|
||||
self.db = option_box.get_filtered_database(self.db)
|
||||
|
||||
self.plist = [x for x in self.db.iter_person_handles()]
|
||||
self.plist = self.db.get_person_handles()
|
||||
self.plist.sort()
|
||||
# the following are used to update the progress meter
|
||||
self.total = 2 * len(self.plist)
|
||||
self.count = 0
|
||||
|
@ -91,7 +91,8 @@ class GeneWebWriter:
|
||||
self.dirname = os.path.dirname (self.filename)
|
||||
try:
|
||||
with open(self.filename, "wb") as self.g:
|
||||
self.flist = [x for x in self.db.iter_family_handles()]
|
||||
self.flist = self.db.get_family_handles()
|
||||
self.flist.sort()
|
||||
if len(self.flist) < 1:
|
||||
self.user.notify_error(_("No families matched by selected filter"))
|
||||
return False
|
||||
|
@ -201,7 +201,7 @@ class CalendarWriter:
|
||||
def write_vevent(self, event_text, event):
|
||||
date = event.get_date_object()
|
||||
place_handle = event.get_place_handle()
|
||||
date_string = self.format_date(date, 0)
|
||||
date_string = self.format_date(date, 1)
|
||||
if date_string is not "":
|
||||
# self.writeln("")
|
||||
self.writeln("BEGIN:VEVENT")
|
||||
|
Loading…
Reference in New Issue
Block a user