Disable error and warning
This commit is contained in:
parent
de0b69f3cb
commit
9d93dacf97
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user