parent
beba2ba092
commit
f7c795c7f6
|
@ -9,7 +9,7 @@ import arrow
|
|||
from datetime import timedelta
|
||||
|
||||
from flask import current_app
|
||||
from sqlalchemy import func, or_
|
||||
from sqlalchemy import func, or_, cast, Boolean
|
||||
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
|
@ -294,6 +294,8 @@ def render(args):
|
|||
|
||||
elif 'destination' in terms:
|
||||
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:
|
||||
query = query.filter(Certificate.active == terms[1])
|
||||
elif 'cn' in terms:
|
||||
|
|
|
@ -98,7 +98,7 @@ angular.module('lemur')
|
|||
};
|
||||
$scope.getCertificateStatus = function () {
|
||||
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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue