Unverified Commit 03fa13e9 by CapsLock

[fix] python 3.3 not on debian.......

Signed-off-by: CapsLock <faimaison@legeox.net>
parent 66eb8cf8
......@@ -2,7 +2,7 @@ CREATE USER avecmonfai with password 'avecmonfai';
CREATE DATABASE avecmonfai owner avecmonfai;
CREATE TABLE pictures(id serial PRIMARY KEY, filename VARCHAR(250) NOT NULL, description VARCHAR(500), created_on TIMESTAMP NOT NULL);
CREATE TABLE domain_names(id serial PRIMARY KEY, name VARCHAR(800) NOT NULL, related_to integer, created_on TIMESTAMP NOT NULL);
CREATE TABLE pictures_domain_names(id serial PRIMARY KEY, picture_id integer, domain_name_id integer, created_on TIMESTAMP NOT NULL);
CREATE TABLE pictures_domain_names(id serial PRIMARY KEY, picture_id integer, domain_name_id integer, created_on TIMESTAMP NOT NULL
grant all on pictures to avecmonfai
grant all on domain_names to avecmonfai
grant all on pictures_domain_names to avecmonfai
......
......@@ -90,9 +90,10 @@ def default(db):
or request.forms.get('searchTerms') is not None \
or 'q' in request.params:
if get_host_name() != '':
redirect(u'{0:s}?q={1:s}'.format(get_root_url(),
request.forms.get('searchTerms')))
if request.forms.get('searchTerms') is not None or 'q' in request.params:
redirect('%s?q=%s' % (get_root_url(),
request.forms.get('searchTerms')))
if request.forms.get('searchTerms') is not None \
or 'q' in request.params:
if request.forms.get('searchTerms') is not None:
squery = request.forms.get('searchTerms')
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment