fix an ankihub issue.

This commit is contained in:
St.Huang 2018-07-05 13:12:46 +08:00
parent 461c7fca59
commit ed57ac6195
2 changed files with 1 additions and 1 deletions

BIN
2.0.x.zip

Binary file not shown.

View File

@ -267,7 +267,7 @@ def update(add=[],install=False):
responseData = response.read() responseData = response.read()
major = json.loads(responseData) major = json.loads(responseData)
data['body'] += '\n\n### {0}\n'.format(major['name']) + major['body'] data['body'] += '\n\n### {0}\n'.format(major['name']) + major['body']
data['assets'] += map(asset,major['assets']) #data['assets'] += map(asset,major['assets'])
if repository['update'] == 'always': if repository['update'] == 'always':
dialog = DialogUpdates(None,data,repository,updateSingle(repositories,path,data),'always') dialog = DialogUpdates(None,data,repository,updateSingle(repositories,path,data),'always')