From aae306aa5a9757a663c38fc0ad35877e76530285 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Mon, 9 Mar 2020 19:05:44 +0100 Subject: [PATCH] [FIX] update Accept header to get contributors --- getmyancestors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getmyancestors.py b/getmyancestors.py index 0567176..12e4626 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -653,7 +653,8 @@ class Indi: def get_contributors(self): """ retrieve contributors """ temp = set() - data = self.tree.fs.get_url("/platform/tree/persons/%s/changes" % self.fid) + url = "/platform/tree/persons/%s/changes" % self.fid + data = self.tree.fs.get_url(url, {"Accept": "application/x-gedcomx-atom+json"}) if data: for entries in data["entries"]: for contributors in entries["contributors"]: @@ -793,7 +794,8 @@ class Fam: """ retrieve contributors """ if self.fid: temp = set() - data = self.tree.fs.get_url("/platform/tree/couple-relationships/%s/changes" % self.fid) + url = "/platform/tree/couple-relationships/%s/changes" % self.fid + data = self.tree.fs.get_url(url, {"Accept": "application/x-gedcomx-atom+json"}) if data: for entries in data["entries"]: for contributors in entries["contributors"]: -- 2.52.0