From 9a7d9c88906cf5b97e60ae78c0a39319ce3314a0 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 19 Jun 2022 23:27:24 +0300 Subject: [PATCH] Updated lines --- slpkg/blacklist.py | 2 +- slpkg/search.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/slpkg/blacklist.py b/slpkg/blacklist.py index 9bb50b8f..3b9f3cfb 100644 --- a/slpkg/blacklist.py +++ b/slpkg/blacklist.py @@ -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: diff --git a/slpkg/search.py b/slpkg/search.py index f69888eb..c0c760f2 100644 --- a/slpkg/search.py +++ b/slpkg/search.py @@ -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'