mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
FIxed for f string
This commit is contained in:
parent
43a55f26c9
commit
47b48bbdea
1 changed files with 5 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue