Skip to content

Commit

Permalink
Merge pull request nicolomantini#11 from krapes/no-output-file
Browse files Browse the repository at this point in the history
Feature: Better support for cases where a line for output file exists…
  • Loading branch information
krapes authored Jul 16, 2020
2 parents 9778332 + 8d006f2 commit 9e5db5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easyapplybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def finish_apply(self):

print(parameters)
cover_letter_loctn = parameters.get('cover_letter_loctn', [None])[0]
output_filename = parameters.get('output_filename', ['output.csv'])[0]
output_filename = [f for f in parameters.get('output_filename', ['output.csv']) if f != None]
output_filename = output_filename[0] if len(output_filename) > 0 else 'output.csv'
blacklist = parameters.get('blacklist', [])

bot = EasyApplyBot(parameters['username'],
Expand Down

0 comments on commit 9e5db5d

Please sign in to comment.