Mercurial > hg > ltpdarepo
changeset 165:4481820ee0f5
Fix bug introduced in last commit.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 04 Nov 2011 12:57:06 +0100 |
parents | 86c23f07c5ae |
children | 7c0f3848f4a6 |
files | src/ltpdarepo/views/browse.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/views/browse.py Fri Nov 04 12:43:54 2011 +0100 +++ b/src/ltpdarepo/views/browse.py Fri Nov 04 12:57:06 2011 +0100 @@ -454,8 +454,8 @@ # check for xml representation curs = g.db.cursor() - curs.execute("""SELECT uuid, xml LIKE '<?xml %' - FROM `%s`.objs WHERE id=%%s""" % database, objid) + curs.execute("""SELECT uuid, xml LIKE %%s + FROM `%s`.objs WHERE id=%%s""" % database, ('<?xml %', objid)) uuid, xml = curs.fetchone() if xml: obj['xml'] = True