Replaced with view message

This commit is contained in:
Dimitris Zlatanidis 2022-06-18 00:25:39 +03:00
parent 28e542c605
commit ca56ff1d97

View file

@ -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()