Небольшие правки

This commit is contained in:
Jack Stdin
2016-01-31 19:21:19 +03:00
parent c2fd52c825
commit c65f78dd06
9 changed files with 97 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import json
import optparse
from aore.fias.fiasfactory import FiasFactory
@@ -117,7 +117,9 @@ def main():
# 4 Debug purposes..
if options.test:
sph = FiasFactory()
sph.find('ул кемровая пасраул алтай майминский р')
print json.dumps(sph.expand("453091f5-2336-4aea-9b90-c4060dca0b33"))
print json.dumps(sph.find('с паспаул ул кедровая', True))
print json.dumps(sph.find('с паспаул ул кедровая'))
if __name__ == '__main__':