From 3bd0ce9bd65f54c346dddb9f305dd390af7f68af Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Sun, 23 Aug 2020 15:27:38 +0530 Subject: [PATCH] utils: Fix the REDAME input file name. --- utils/gooodreads.py | 6 +++--- utils/housekeep.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/gooodreads.py b/utils/gooodreads.py index 3da4c7b..53d3cca 100644 --- a/utils/gooodreads.py +++ b/utils/gooodreads.py @@ -36,8 +36,8 @@ def get_goodread_info(library, force): total_book_count += len(library[key]) - for chapter in library: - book_list = library[chapter] + for category in library: + book_list = library[category] for book in book_list: # do not call the api again if we already have the infomation if not force and 'rating' in book and book['rating']: @@ -51,4 +51,4 @@ def get_goodread_info(library, force): sys.stdout.flush() # <- makes python print it anyway # need to wait a second between the requests, to not abuse the API - time.sleep(1) \ No newline at end of file + time.sleep(1) diff --git a/utils/housekeep.py b/utils/housekeep.py index abe8424..5cc5fb6 100644 --- a/utils/housekeep.py +++ b/utils/housekeep.py @@ -59,7 +59,7 @@ def main(): from gooodreads import get_goodread_info from write_file import render - in_file = flags.in_file or './../README.MD' + in_file = flags.in_file or './../README.md' out_file = flags.out_file or './../README-new.md' input_file_type = flags.input_file_type or 'new' sort_by = flags.sort_by or 'rating'