Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed counter from iteration, it was there for debug purpose, and now

that I fixed a bug, it is not required anymore
  • Loading branch information...
commit c77cf63a9d63357300f2b5616e6534ed271ec5f0 1 parent 5a5e889
@ik5 authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  convert_quotes.py
View
3  convert_quotes.py
@@ -77,7 +77,6 @@ def finalize(db_connection, logger=LOGGER) :
def iter_quotes(quotes_file = QUOTES_FILE, logger = LOGGER) :
"Walks over the quotes file, yields (quote, author) tuples for each quote"
- counter = 0
with open(quotes_file) as f:
quote = []
@@ -108,9 +107,7 @@ def iter_quotes(quotes_file = QUOTES_FILE, logger = LOGGER) :
# extract it for external handler
yield str_quote, author
quote = []
- counter += 1
- logger.debug('Total quotes found with iterator: %d', counter)
def handle_author_db(con, author, authors_ids, logger=LOGGER) :
"""work on the author side of the quote"""
Please sign in to comment.
Something went wrong with that request. Please try again.