mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updated lines
This commit is contained in:
parent
918304b268
commit
9a7d9c8890
2 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue