Skip to content

Commit

Permalink
修改BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
FengYu committed Nov 13, 2014
1 parent 319863c commit 4c8777f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getComic.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def getContent(id):
sortedContentList = []
for i in range(count + 1):
for item in contentJson:
if isinstance(contentJson[item], dict) and contentJson[item]['seq'] == i:
if isinstance(contentJson[item], dict) and contentJson[item].get('seq') == i:
sortedContentList.append({item: contentJson[item]})
break
return (comicName, comicIntrd, count, sortedContentList)
Expand Down

0 comments on commit 4c8777f

Please sign in to comment.