fix bug in checkResumeFile()
This commit is contained in:
parent
f8a3025892
commit
2f41f92e98
@ -20,7 +20,7 @@ def checkResumeFile():
|
|||||||
|
|
||||||
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'w') as f:
|
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'w') as f:
|
||||||
f.write('0')
|
f.write('0')
|
||||||
return(0)
|
return([0])
|
||||||
else:
|
else:
|
||||||
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'r') as f:
|
with open('{0}/.resume'.format(DOWNLOAD_DIR,), 'r') as f:
|
||||||
lines = [line.split('\n')[0] for line in f][-20:]
|
lines = [line.split('\n')[0] for line in f][-20:]
|
||||||
|
Loading…
Reference in New Issue
Block a user