mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +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
|
@dataclass
|
||||||
class Blacklist:
|
class Blacklist:
|
||||||
|
''' Reads and returns the blacklist. '''
|
||||||
etc_path: str = Configs.etc_path
|
etc_path: str = Configs.etc_path
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
''' Reads and returns the blacklist. '''
|
|
||||||
file = f'{self.etc_path}/blacklist.json'
|
file = f'{self.etc_path}/blacklist.json'
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
with open(file, 'r') as black:
|
with open(file, 'r') as black:
|
||||||
|
|
|
@ -34,8 +34,7 @@ class Search:
|
||||||
SBoTable.files,
|
SBoTable.files,
|
||||||
SBoTable.short_description,
|
SBoTable.short_description,
|
||||||
SBoTable.location
|
SBoTable.location
|
||||||
).filter(
|
).filter(SBoTable.name == package).first()
|
||||||
SBoTable.name == package).first()
|
|
||||||
|
|
||||||
print(f'Name: {GREEN}{info[0]}{ENDC}\n'
|
print(f'Name: {GREEN}{info[0]}{ENDC}\n'
|
||||||
f'Version: {GREEN}{info[1]}{ENDC}\n'
|
f'Version: {GREEN}{info[1]}{ENDC}\n'
|
||||||
|
|
Loading…
Reference in a new issue