Skip to content

Commit

Permalink
Merge pull request #2754 from data-for-change/dev
Browse files Browse the repository at this point in the history
merge dev into master
  • Loading branch information
atalyaalon authored Jan 8, 2025
2 parents 179ea82 + 562399d commit aced65a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anyway/parsers/news_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def update_all_in_db(source=None, newsflash_id=None, use_existing_coordinates_on
newsflash=newsflash,
use_existing_coordinates_only=use_existing_coordinates_only,
)
newsflash.set_critical()
if i % 1000 == 0:
db.commit()
db.commit()
Expand All @@ -56,6 +57,7 @@ def scrape_extract_store_rss(site_name, db):
if newsflash.accident:
# FIX: No accident-accurate date extracted
extract_geo_features(db=db, newsflash=newsflash, use_existing_coordinates_only=False)
newsflash.set_critical()
db.insert_new_newsflash(newsflash)


Expand All @@ -69,6 +71,7 @@ def scrape_extract_store_twitter(screen_name, db):
newsflash.organization = classify_organization("twitter")
if newsflash.accident:
extract_geo_features(db=db, newsflash=newsflash, use_existing_coordinates_only=False)
newsflash.set_critical()
db.insert_new_newsflash(newsflash)


Expand Down

0 comments on commit aced65a

Please sign in to comment.