From b66d7ce1fdf6cdd1b3860ae645c79796934bc43a Mon Sep 17 00:00:00 2001 From: kevgliss Date: Fri, 6 Oct 2017 13:22:03 -0700 Subject: [PATCH] Source plugin (#963) * Ensuring that we have default options for source plugins. * Handle duplicate serials. Serials are not unique across issuers. * Minor fix. --- lemur/certificates/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/certificates/service.py b/lemur/certificates/service.py index dc56876a..48364652 100644 --- a/lemur/certificates/service.py +++ b/lemur/certificates/service.py @@ -63,7 +63,7 @@ def get_by_serial(serial): :param serial: :return: """ - return Certificate.filter(Certificate.serial == serial).all() + return Certificate.query.filter(Certificate.serial == serial).all() def delete(cert_id):