There's some commented-out code in tasks.py's add_new_nonprofit(...) that does this and sort of works, but sometimes results in an apparent race condition, where SQL Alchemy doesn't see new rows in the database that were previously committed (e.g., a news article get retrieved and inserted into the DB, but querying the SQL Alchemy session for it returns null).
There's some commented-out code in tasks.py's add_new_nonprofit(...) that does this and sort of works, but sometimes results in an apparent race condition, where SQL Alchemy doesn't see new rows in the database that were previously committed (e.g., a news article get retrieved and inserted into the DB, but querying the SQL Alchemy session for it returns null).