Update app.py
Browse files
app.py
CHANGED
@@ -79,11 +79,9 @@ async def fetch_posts(user: UserRequest):
|
|
79 |
detail="No posts found for the user."
|
80 |
)
|
81 |
|
82 |
-
# Fetch competitors' posts
|
83 |
-
competitors_posts = fetch_competitors_posts(username)
|
84 |
|
85 |
# Combine user and competitor data
|
86 |
-
all_posts = user_posts
|
87 |
|
88 |
# Save data to the database
|
89 |
if not save_to_db(all_posts):
|
|
|
79 |
detail="No posts found for the user."
|
80 |
)
|
81 |
|
|
|
|
|
82 |
|
83 |
# Combine user and competitor data
|
84 |
+
all_posts = user_posts
|
85 |
|
86 |
# Save data to the database
|
87 |
if not save_to_db(all_posts):
|