From: BenoƮt Fontaine Date: Mon, 9 Mar 2020 18:05:44 +0000 (+0100) Subject: [FIX] update Accept header to get contributors X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=aae306aa5a9757a663c38fc0ad35877e76530285;p=gamesguru%2Fgetmyancestors.git [FIX] update Accept header to get contributors --- 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"]: