Skip to content

Commit

Permalink
Merge pull request #2560 from shaked-hayek/bug-2542-fix-newsflash-loc…
Browse files Browse the repository at this point in the history
…ation-qualification-wrong-id

[FIX-2542] Fix wrong id issue in location qualification
  • Loading branch information
atalyaalon authored Jan 28, 2024
2 parents 59beffa + f2f9005 commit 018bd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyway/views/news_flash/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ def update_news_flash_qualifying(id):
logging.error("only manual update should contain location details.")
return return_json_error(Es.BR_BAD_FIELD)
news_flash_obj = db.session.query(NewsFlash).filter(NewsFlash.id == id).first()
old_location, old_location_qualifiction = extracted_location_and_qualification(news_flash_obj)
if news_flash_obj is None:
return Response(status=404)
else:
old_location, old_location_qualifiction = extracted_location_and_qualification(news_flash_obj)
if manual_update:
if use_road_segment:
news_flash_obj.road_segment_name = road_segment_name
Expand Down

0 comments on commit 018bd1f

Please sign in to comment.