Updated lines

This commit is contained in:
Dimitris Zlatanidis 2022-06-19 23:27:24 +03:00
parent 918304b268
commit 9a7d9c8890
2 changed files with 2 additions and 3 deletions

View file

@ -11,10 +11,10 @@ from slpkg.configs import Configs
@dataclass
class Blacklist:
''' Reads and returns the blacklist. '''
etc_path: str = Configs.etc_path
def get(self):
''' Reads and returns the blacklist. '''
file = f'{self.etc_path}/blacklist.json'
if os.path.isfile(file):
with open(file, 'r') as black:

View file

@ -34,8 +34,7 @@ class Search:
SBoTable.files,
SBoTable.short_description,
SBoTable.location
).filter(
SBoTable.name == package).first()
).filter(SBoTable.name == package).first()
print(f'Name: {GREEN}{info[0]}{ENDC}\n'
f'Version: {GREEN}{info[1]}{ENDC}\n'