changer cover photo
This commit is contained in:
@@ -54,9 +54,9 @@ def get_docs_themes(request, logged_in):
|
||||
|
||||
def get_docs_bycritere(request, critere, logged_in):
|
||||
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:
|
||||
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()
|
||||
return results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user