Skip to content

Commit

Permalink
Merge ecc5ddf into 54056c1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFriendlyCoder committed May 28, 2018
2 parents 54056c1 + ecc5ddf commit abb1127
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/friendlypins/utils/console_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ def download_thumbnails(api_token, board_name, output_folder,):
"bar_format": fmt,
"disable": DISABLE_PROGRESS_BARS
}
retval = 0
with tqdm(**parms) as pbar:
for cur_pin in selected_board.pins:
retval = _download_pin(cur_pin, output_folder)
if retval:
return retval
temp = _download_pin(cur_pin, output_folder)
if temp:
retval = temp
pbar.update()

return 0
return retval

def delete_board(api_token, board_name):
"""Deletes a board owned by a specific user
Expand Down

0 comments on commit abb1127

Please sign in to comment.