Add unicoding of input string (wordentries)

This commit is contained in:
Jack Stdin 2016-02-15 12:28:13 +03:00
parent 14118e4b0d
commit 9e72041d04
4 changed files with 5 additions and 3 deletions

View File

@ -59,7 +59,7 @@ _Внимание_! Только Python 2.7, только PostgreSQL, тольк
postgres=# GRANT ALL privileges ON DATABASE fias_db TO phias;
postgres=# ALTER USER phias WITH SUPERUSER;
postgres=# \q
postgres=# sudo -u phias psql -d fias_db -U phias
sudo -u phias psql -d fias_db -U phias
postgres=# CREATE EXTENSION pg_trgm SCHEMA public;
```

View File

@ -16,3 +16,5 @@ db_conf.password = "postgres"
unrar_config.path = "unrar"
folders.temp = "/tmp/py-fias"
basic.logging = True

View File

@ -44,7 +44,7 @@ class WordEntry:
def __init__(self, db, word):
self.db = db
self.word = str(word)
self.word = unicode(word)
self.word_len = len(unicode(self.word))
self.variations = []
self.scname = None

View File

@ -5,4 +5,4 @@ from aore import phias
application = phias.app
if __name__ == '__main__':
application.run(host='0.0.0.0', port=55001, debug=True)
application.run(host='0.0.0.0', port=8087, debug=True)