Ensuring that our syncing process can find duplicate certifcates that do no need to be sync'd (#560)
This commit is contained in:
parent
eee534a161
commit
9030aed8a4
|
@ -86,10 +86,10 @@ def find_duplicates(cert):
|
||||||
:param cert:
|
:param cert:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if cert.get('chain'):
|
if cert.chain:
|
||||||
return Certificate.query.filter_by(body=cert['body'].strip(), chain=cert['chain'].strip()).all()
|
return Certificate.query.filter_by(body=cert.body.strip(), chain=cert.chain.strip()).all()
|
||||||
else:
|
else:
|
||||||
return Certificate.query.filter_by(body=cert['body'].strip(), chain=None).all()
|
return Certificate.query.filter_by(body=cert.body.strip(), chain=None).all()
|
||||||
|
|
||||||
|
|
||||||
def export(cert, export_plugin):
|
def export(cert, export_plugin):
|
||||||
|
|
Loading…
Reference in New Issue