Skip to content

Commit

Permalink
fix instagram parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ohld committed Jun 6, 2024
1 parent 79857ca commit e631e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ async def insert_parsed_posts_from_ig(

for post in posts_to_update:
update_query = (
meme_raw_vk.update()
.where(meme_raw_vk.c.meme_source_id == meme_source_id)
.where(meme_raw_vk.c.post_id == post["post_id"])
meme_raw_ig.update()
.where(meme_raw_ig.c.meme_source_id == meme_source_id)
.where(meme_raw_ig.c.post_id == post["post_id"])
.values(post)
)
await execute(update_query)
Expand Down

0 comments on commit e631e51

Please sign in to comment.