drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 18a2e36458583ee93d0ab57197bb431d8848204c
parent b6937f858f4a525e8cd2915806d3b31cabb1afdc
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  9 Nov 2011 21:52:23 +0100

woops, forgot escaping

Diffstat:
lexique2sql.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lexique2sql.py b/lexique2sql.py @@ -110,7 +110,7 @@ class Word: @property def sql(self): render = { - 'string': lambda s: '"'+s+'"', # no escaping: use parametrized queries! + 'string': lambda s: '"'+escape(s)+'"', # no escaping: use parametrized queries! 'float': str, 'int': lambda s: str(int(s)), 'bool': lambda s: str(int(s)),