This commit is contained in:
kevgliss 2016-12-20 14:26:29 -08:00 committed by GitHub
parent beba2ba092
commit f7c795c7f6
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import arrow
from datetime import timedelta from datetime import timedelta
from flask import current_app from flask import current_app
from sqlalchemy import func, or_ from sqlalchemy import func, or_, cast, Boolean
from cryptography import x509 from cryptography import x509
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
@ -294,6 +294,8 @@ def render(args):
elif 'destination' in terms: elif 'destination' in terms:
query = query.filter(Certificate.destinations.any(Destination.id == terms[1])) query = query.filter(Certificate.destinations.any(Destination.id == terms[1]))
elif 'notify' in filt:
query = query.filter(Certificate.notify == cast(terms[1], Boolean))
elif 'active' in filt: elif 'active' in filt:
query = query.filter(Certificate.active == terms[1]) query = query.filter(Certificate.active == terms[1])
elif 'cn' in terms: elif 'cn' in terms:

View File

@ -98,7 +98,7 @@ angular.module('lemur')
}; };
$scope.getCertificateStatus = function () { $scope.getCertificateStatus = function () {
var def = $q.defer(); var def = $q.defer();
def.resolve([{'title': 'Active', 'id': true}, {'title': 'Inactive', 'id': false}]); def.resolve([{'title': 'True', 'id': true}, {'title': 'False', 'id': false}]);
return def; return def;
}; };