fix bug in checkResumeFile()

This commit is contained in:
Alexander Popov 2017-03-07 16:39:12 +03:00
parent f8a3025892
commit 2f41f92e98
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def checkResumeFile():
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'w') as f:
f.write('0')
return(0)
return([0])
else:
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'r') as f:
lines = [line.split('\n')[0] for line in f][-20:]