Skip to content

Commit

Permalink
Rename the val parameter to name for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenyoungs committed Feb 6, 2025
1 parent e760eb9 commit 5eda9cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gramps/gen/db/dummydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,15 +1152,15 @@ def get_tag_from_handle(self, handle):
LOG.warning("handle %s does not exist in the dummy database", handle)
raise HandleError(f"Handle {handle} not found")

def get_tag_from_name(self, val):
def get_tag_from_name(self, name):
"""
Find a Tag in the database from the passed Tag name.
If no such Tag exists, None is returned.
"""
if not self.db_is_open:
LOG.debug("database is closed")
LOG.warning("tag name %s does not exist in the dummy database", val)
LOG.warning("tag name %s does not exist in the dummy database", name)

def get_tag_handles(self, sort_handles=False, locale=glocale):
"""
Expand Down
4 changes: 2 additions & 2 deletions gramps/gen/proxy/proxybase.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,12 @@ def get_note_from_gramps_id(self, gramps_id):
self.include_note, self.db.get_note_from_gramps_id(gramps_id)
)

def get_tag_from_name(self, val):
def get_tag_from_name(self, name):
"""
Finds a Tag in the database from the passed tag name.
If no such Tag exists, None is returned.
"""
return self.gfilter(self.include_tag, self.db.get_tag_from_name(val))
return self.gfilter(self.include_tag, self.db.get_tag_from_name(name))

def get_name_group_mapping(self, surname):
"""
Expand Down

0 comments on commit 5eda9cd

Please sign in to comment.