Merge branch 'hotfix/0.11.9'

This commit is contained in:
JackDandy 2016-03-17 12:41:36 +00:00
commit f41b74a35e
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,9 @@
### 0.11.8 (2016-03-16 12:50:00 UTC) ### 0.11.9 (2016-03-17 12:30:00 UTC)
* Fix for import of very rare db structure
### 0.11.8 (2016-03-16 12:50:00 UTC)
* Fix ensures internal buffer of a downloaded file is written to disk * Fix ensures internal buffer of a downloaded file is written to disk

View file

@ -77,7 +77,8 @@ class DBConnection(object):
if result: if result:
if self.hasColumn('db_version', 'db_minor_version'): if self.hasColumn('db_version', 'db_minor_version'):
minor = self.select('SELECT db_minor_version FROM db_version') minor = self.select('SELECT db_minor_version FROM db_version')
return int(result[0]['db_version']) * 100 + int(minor[0]['db_minor_version']) version = int(result[0]['db_version']) * 100 + int(minor[0]['db_minor_version'])
return (version, 4301)[2000301 == version]
return int(result[0]['db_version']) return int(result[0]['db_version'])
else: else:
return 0 return 0