Commit 1243dcd5 authored by soheib's avatar soheib
Browse files

update instaloader service

parent 8996fb7f
......@@ -77,7 +77,7 @@ def getComments(db, post, profile):
user_id = found_username['_id']
else:
created_user = account_col.insert_one({"username": comment.owner.username,
"instagram_user_id": comment.owner.userid, "is_follower": false})
"instagram_user_id": comment.owner.userid, "is_follower": False})
user_id = created_user.inserted_id
print(comment.owner.username, 'added to users')
......
......@@ -80,7 +80,7 @@ def getLikes(db, post, profile):
user_id = found_username['_id']
else:
created_user = account_col.insert_one(
{"username": like.username, "is_follower": false})
{"username": like.username, "is_follower": False})
user_id = created_user.inserted_id
print(like.username, 'added to users')
temp = {"user_id": user_id,
......@@ -88,8 +88,8 @@ def getLikes(db, post, profile):
x = col.update(temp, temp, upsert=True)
print(like.username, " like post : ", post_short_code)
except:
print("Error")
except err:
print(err)
__main__()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment