Disable error and warning

This commit is contained in:
George Lacey 2022-04-06 13:32:48 +01:00
parent de0b69f3cb
commit 9d93dacf97

View File

@ -9,11 +9,11 @@ from ..utility.time import last_day_previous_months
def repo_json(request, repo_label):
repo = get_object_or_404(Repo, label__label=repo_label)
repo_dict = {'location': repo.location,
'latest_backup': "repo.last_backup()",
'size': "repo.size_string()",
'latest_backup': repo.last_backup(),
'size': repo.size_string(),
'recent_errors': "not implemented",
'warning': repo.warning(),
'error': repo.error()}
'warning': True,
'error': True}
return JsonResponse(repo_dict)