Use absolute imports
This commit is contained in:
parent
dfecc40d2b
commit
b49be0c0ba
|
@ -0,0 +1 @@
|
||||||
|
|
1
src/borgmanager/summary/__init__.py
Normal file
1
src/borgmanager/summary/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from .summary import Summary
|
16
src/borgmanager/summary/summary.py
Normal file
16
src/borgmanager/summary/summary.py
Normal 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
|
Loading…
Reference in New Issue
Block a user