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): def repo_json(request, repo_label):
repo = get_object_or_404(Repo, label__label=repo_label) repo = get_object_or_404(Repo, label__label=repo_label)
repo_dict = {'location': repo.location, repo_dict = {'location': repo.location,
'latest_backup': "repo.last_backup()", 'latest_backup': repo.last_backup(),
'size': "repo.size_string()", 'size': repo.size_string(),
'recent_errors': "not implemented", 'recent_errors': "not implemented",
'warning': repo.warning(), 'warning': True,
'error': repo.error()} 'error': True}
return JsonResponse(repo_dict) return JsonResponse(repo_dict)