Reformatted

This commit is contained in:
Jack Stdin
2016-01-12 23:21:06 +03:00
parent 9803b1d25a
commit acfee0cd8c
10 changed files with 33 additions and 23 deletions

View File

@@ -23,7 +23,7 @@ class Importer:
assert downloadfileinfo.VersionId < self.get_current_fias_version(), "DB is already up-to-date"
yield dict(intver=int(downloadfileinfo.VersionId), strver=str(downloadfileinfo.TextVersion),
url=str(downloadfileinfo.FiasCompleteXmlUrl))
url=str(downloadfileinfo.FiasCompleteXmlUrl))
# return (intver, strver, url)
def get_updates(self):
@@ -36,4 +36,4 @@ class Importer:
for DownloadFileInfo in response.GetAllDownloadFileInfoResponse.GetAllDownloadFileInfoResult.DownloadFileInfo:
if int(DownloadFileInfo.VersionId) > current_fias_version:
yield dict(intver=int(DownloadFileInfo.VersionId), strver=str(DownloadFileInfo.TextVersion),
url=str(DownloadFileInfo.FiasDeltaXmlUrl))
url=str(DownloadFileInfo.FiasDeltaXmlUrl))