changer cover photo

This commit is contained in:
2021-03-17 16:33:18 +01:00
parent 0d14bf0d5a
commit 5792bcf536
5 changed files with 3 additions and 3 deletions

View File

@@ -54,9 +54,9 @@ def get_docs_themes(request, logged_in):
def get_docs_bycritere(request, critere, logged_in): def get_docs_bycritere(request, critere, logged_in):
if logged_in == None: if logged_in == None:
query = "SELECT * FROM docs WHERE (texte like :critere) OR (intitule like :critere) AND statut = 'public';" query = "SELECT * FROM docs WHERE (texte like :critere OR intitule like :critere) AND statut = 'public';"
else: else:
query = "SELECT * FROM docs WHERE (texte like :critere) OR (intitule like :critere);" query = "SELECT * FROM docs WHERE (texte like :critere OR intitule like :critere);"
results = request.dbsession.execute(query, {'critere': '%' + critere + '%'}).fetchall() results = request.dbsession.execute(query, {'critere': '%' + critere + '%'}).fetchall()
return results return results

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -5,7 +5,7 @@
<div class="col-sm-4"> <div class="col-sm-4">
<br /> <br />
<br /> <br />
<img src="${request.static_url('caotek_mesavoirs:static/img/cover_image_540max.jpg')}" alt="cover_image"> <img src="${request.static_url('caotek_mesavoirs:static/img/cover_image_540max.jpg')}" alt="cover_image" /><br />
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8">