Updated for database load

This commit is contained in:
Dimitris Zlatanidis 2023-05-21 22:28:56 +03:00
parent 9515db1665
commit 073f0625b1

View file

@ -709,11 +709,11 @@ class Argparse(Configs):
command: str = Argparse.find.__name__ command: str = Argparse.find.__name__
if len(self.args) >= 2: if len(self.args) >= 2:
self.load_database()
self.check.is_database_empty() self.check.is_database_empty()
packages: list = self.is_file_list_packages() packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive: if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
self.load_database()
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data) packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
if self.utils.is_option(self.flag_searches, self.flags): if self.utils.is_option(self.flag_searches, self.flags):
@ -753,11 +753,11 @@ class Argparse(Configs):
command: str = Argparse.search.__name__ command: str = Argparse.search.__name__
if len(self.args) >= 2: if len(self.args) >= 2:
self.load_database()
self.check.is_database_empty() self.check.is_database_empty()
packages: list = self.is_file_list_packages() packages: list = self.is_file_list_packages()
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive: if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
self.load_database()
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data) packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
if self.utils.is_option(self.flag_searches, self.flags): if self.utils.is_option(self.flag_searches, self.flags):