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. |
||
|---|---|---|
| .. | ||
| analyzers | ||
| __init__.py | ||
| config.py | ||
| main.py | ||
| ticker_extractor.py | ||