Use absolute imports

This commit is contained in:
George Lacey 2021-05-04 12:52:16 +01:00
parent dfecc40d2b
commit b49be0c0ba
4 changed files with 18 additions and 0 deletions

View File

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
from .summary import Summary

View File

@ -0,0 +1,16 @@
from borgmanager.borg import Repo
class Summary(object):
def __init__(self, db, args):
self.db = db
if args == "repo":
print(self.print_repos())
def print_repos(self):
repo_sql = self.db.get_repos()
repos = []
for line in repo_sql:
repos.append(Repo.from_sql(line))
pass