Skip to content

Commit 33d6c90

Browse files
committed
Add Internet GOV reference to place
1 parent 46f0c9e commit 33d6c90

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

GetGOV/getgov.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,15 @@ def __get_place(self, gov_id, type_dic, preferred_lang):
413413
gov_url = "https://gov.genealogy.net/semanticWeb/about/" + urllib.parse.quote(
414414
gov_id
415415
)
416+
Internet_url = Url()
417+
place_url = "https://gov.genealogy.net/item/show/" + urllib.parse.quote(
418+
gov_id
419+
)
420+
Internet_url.set_path(place_url)
421+
Internet_url.set_type(_("GOV link"))
416422
place = Place()
417423
place.gramps_id = gov_id
424+
place.add_url(Internet_url)
418425
try:
419426
response = urllib.request.urlopen(url=gov_url, context=self._scontext)
420427
except urllib.error.URLError as e:

0 commit comments

Comments
 (0)