mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Replaced with view message
This commit is contained in:
parent
28e542c605
commit
ca56ff1d97
1 changed files with 3 additions and 6 deletions
|
@ -15,16 +15,13 @@ class CleanLogsDependencies:
|
|||
session: str = Session
|
||||
|
||||
def clean(self):
|
||||
deps = self.session.query(
|
||||
dependencies = self.session.query(
|
||||
LogsDependencies.name, LogsDependencies.requires).all()
|
||||
|
||||
if deps:
|
||||
print('The following logs will be removed:\n')
|
||||
|
||||
for dep in deps:
|
||||
print(f'{dep[0]} -> Dependencies: {dep[1]}')
|
||||
if dependencies:
|
||||
|
||||
view = ViewMessage()
|
||||
view.logs_packages(dependencies)
|
||||
view.question(self.flags)
|
||||
|
||||
self.session.query(LogsDependencies).delete()
|
||||
|
|
Loading…
Reference in a new issue