Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
try to fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
megachweng committed Dec 6, 2018
1 parent ef6b585 commit b852662
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ def getTotalPage(self):
data={'categoryid': -1}
)
records = r.json()['recordsTotal']
print(records)
total = ceil(records / 100)
print('record', records)
print('total', total)
self.SIG.totalTasks.emit(total)
self.SIG.log.emit(f"总页数:{total}")
return total
Expand All @@ -206,7 +203,6 @@ def getWordPerPage(self, pageNumber):
cookies=self.cookie)
wl = r.json()
wordList = list(set(word['uuid'] for word in wl['data']))
print(wordList, pageNumber)
except Exception as e:
self.SIG.exceptionOccurred.emit(e)
self.SIG.log.emit(f'网络异常{e}')
Expand All @@ -219,5 +215,4 @@ def run(self):
if self.login():
words = [self.getWordPerPage(n) for n in range(self.getTotalPage())]
chained_words = list(chain(*words))
print('一共', len(chained_words))
self.SIG.wordsReady.emit(chained_words)

0 comments on commit b852662

Please sign in to comment.