Fix pyta errors

This commit is contained in:
MstrPikachu
2022-03-24 00:50:30 -04:00
parent d966184068
commit 30ab3bb4d3
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ def load_review_graph(reviews_file: str, book_names_file: str) -> Graph:
# Read book names file and create id-name mapping
with open(book_names_file, 'r', newline='', encoding='UTF-8') as f:
reader = csv.reader(f)
mp = {book_id: name for book_id, name in reader}
mp = dict(reader)
# Read user review file and link user and reviews in the graph
with open(reviews_file, 'r', newline='', encoding='UTF-8') as f: