Update logic.py
Browse files
logic.py
CHANGED
@@ -89,8 +89,7 @@ def create_ratings_graph(user_id, movie_id, ratings):
|
|
89 |
|
90 |
else:
|
91 |
insert_doc = {}
|
92 |
-
insert_doc = {"
|
93 |
-
"_from": ("Users" + "/" + str(user_mapping[user_id[idx]])),
|
94 |
"_to": ("Movie" + "/" + str(movie_mappings[movie_id[idx]])),
|
95 |
"_rating": float(ratings[idx])}
|
96 |
|
|
|
89 |
|
90 |
else:
|
91 |
insert_doc = {}
|
92 |
+
insert_doc = {"_from": ("Users" + "/" + str(user_mapping[user_id[idx]])),
|
|
|
93 |
"_to": ("Movie" + "/" + str(movie_mappings[movie_id[idx]])),
|
94 |
"_rating": float(ratings[idx])}
|
95 |
|