FIxed for f string

This commit is contained in:
Dimitris Zlatanidis 2024-04-22 19:27:50 +03:00
parent 43a55f26c9
commit 47b48bbdea

View file

@ -1,6 +1,8 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# mypy: disable-error-code="no-redef"
import shutil
from pathlib import Path
@ -64,9 +66,9 @@ class RepoInfo(Configs):
return count
def view_the_title(self) -> None:
title: str = f'repositories information:'.title()
title: str = 'repositories information:'.title()
if self.option_for_repository:
title: str = f'repository information:'.title()
title: str = 'repository information:'.title()
print(f'\n{title}')
print('=' * (self.columns - 1))
print(f"{'Name:':<{self.name_alignment}}{'Status:':<14}{'Last Updated:':<34}{'Packages:':>12}")
@ -96,7 +98,7 @@ class RepoInfo(Configs):
status: str = 'Disabled'
if self.dates.get(repo):
date: str = self.dates[repo].get('last_updated', 'None')
if item['enable']:
self.enabled += 1
status: str = 'Enabled'