From: BenoƮt Fontaine Date: Sun, 30 Jun 2019 22:59:01 +0000 (+0200) Subject: fstogedcom: replace get_userid call with fid attribute X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=323ac78f95099f510dca800e9a303097844f1b9d;p=gamesguru%2Fgetmyancestors.git fstogedcom: replace get_userid call with fid attribute --- diff --git a/fstogedcom.py b/fstogedcom.py index af98196..49f662f 100644 --- a/fstogedcom.py +++ b/fstogedcom.py @@ -461,8 +461,7 @@ class Download(Frame): cache.delete("lang") cache.add("lang", self.fs.lang) lds_account = ( - self.fs.get_url("/platform/tree/persons/%s/ordinances.json" % self.fs.get_userid()) - != "error" + self.fs.get_url("/platform/tree/persons/%s/ordinances.json" % self.fs.fid) != "error" ) self.options = Options(self.form, lds_account) self.info("") @@ -472,7 +471,7 @@ class Download(Frame): self.btn_valid.config( command=self.command_in_thread(self.download), state="normal", text=_("Download") ) - self.options.start_indis.add_indi(self.fs.get_userid()) + self.options.start_indis.add_indi(self.fs.fid) self.update_needed = False def quit(self):