Skip to content

database_manager: simplify has_entry_XXX

Given that the has_entry_XXX got those attributes and then returned if they exist, just directly use get_entry_XXX and reduce code duplication.

Also, in addition to passing in a UUID, this allows us to pass in an Entry or a UUID.

Ideally we would not need these has_entry_XXX at all (they are more expensive than just getting them), and would do

name = database_manager.get_entry_name(uuid) if name: do something with name

Merge request reports