Print repo name if not null
This commit is contained in:
parent
3390bf1c53
commit
d530abacb3
|
@ -16,7 +16,9 @@ class Summary(object):
|
||||||
for line in repo_sql:
|
for line in repo_sql:
|
||||||
repo = Repo.from_sql(line)
|
repo = Repo.from_sql(line)
|
||||||
cache = Cache.from_sql(self.db.get_cache(repo))
|
cache = Cache.from_sql(self.db.get_cache(repo))
|
||||||
return_string += f"Repo: {self.db.get_repo_name(repo)}\n"
|
repo_name = self.db.get_repo_name(repo)
|
||||||
|
if repo_name is not None:
|
||||||
|
return_string += f"Repo: {repo_name}\n"
|
||||||
return_string += f"Location: {repo.location}\n"
|
return_string += f"Location: {repo.location}\n"
|
||||||
return_string += f"Last backup: {self.seconds_to_string(repo.seconds_since(), 'day', True)} ago\n"
|
return_string += f"Last backup: {self.seconds_to_string(repo.seconds_since(), 'day', True)} ago\n"
|
||||||
return_string += f"Size: {self.bytes_to_string(cache.unique_csize)}\n"
|
return_string += f"Size: {self.bytes_to_string(cache.unique_csize)}\n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user