fixed admin email in production.ini

This commit is contained in:
2023-05-15 17:48:37 +02:00
parent cc21ae1559
commit c908a21433
3 changed files with 4 additions and 4 deletions

View File

@@ -191,7 +191,7 @@ def devis_web(request):
os.remove(dest)
# on est en developpement ou en production
if request.registry.settings["mondumas.admin_email"] == "sasdumas@entreprise-dumas.com":
if request.registry.settings["mondumas.admin_email"].find('@entreprise-dumas.com') > 0:
origin = 'https://gestion.entreprise-dumas.com/devis_preview/%s' % nodevis
pdfkit.from_url(origin, dest, options=options)
else: