refactoring: history

This commit is contained in:
Vinicius Moreira
2019-08-15 19:07:16 -03:00
parent 7e47cec300
commit 708385a8f3
4 changed files with 17 additions and 17 deletions

View File

@@ -196,8 +196,7 @@ class GetAppHistory(QThread):
def run(self):
if self.app:
try:
res = {'model': self.app.model, 'history': self.manager.get_history(self.app.model)}
self.signal_finished.emit(res)
self.signal_finished.emit({'history': self.manager.get_history(self.app.model)})
except (requests.exceptions.ConnectionError, NoInternetException):
self.signal_finished.emit({'error': self.locale_keys['internet.required']})
finally: