Update logic.py
Browse files
logic.py
CHANGED
@@ -311,11 +311,11 @@ def create_smart_graph():
|
|
311 |
def load_data_to_ArangoDB(login):
|
312 |
global movie_rec_db
|
313 |
movie_rec_db = oasis.connect_python_arango(login)
|
|
|
|
|
|
|
314 |
if not movie_rec_db.has_collection("Movie"):
|
315 |
movie_rec_db.create_collection("Movie", replication_factor=3)
|
316 |
-
|
317 |
-
|
318 |
-
movie_rating_graph, Ratings = create_smart_graph()
|
319 |
|
320 |
batch = []
|
321 |
BATCH_SIZE = 128
|
|
|
311 |
def load_data_to_ArangoDB(login):
|
312 |
global movie_rec_db
|
313 |
movie_rec_db = oasis.connect_python_arango(login)
|
314 |
+
|
315 |
+
movie_rating_graph, Ratings = create_smart_graph()
|
316 |
+
|
317 |
if not movie_rec_db.has_collection("Movie"):
|
318 |
movie_rec_db.create_collection("Movie", replication_factor=3)
|
|
|
|
|
|
|
319 |
|
320 |
batch = []
|
321 |
BATCH_SIZE = 128
|