ArticleSentiment referenced db_article.id before the Article was flushed, causing a NotNullViolationError on the article_id column. Adding an explicit flush after session.add(db_article) ensures the UUID is populated before creating the foreign key reference. |
||
|---|---|---|
| .. | ||
| api_gateway | ||
| learning_engine | ||
| market_data | ||
| news_fetcher | ||
| sentiment_analyzer | ||
| signal_generator | ||
| trade_executor | ||
| __init__.py | ||