Replace / remove redundant uses of "areas"

In one case ("areas=['manchester']") the format was even invalid,
but in general the original value of the column is pretty much
irrelevant for tests that involve updating it (it's highly unlikely
the column would default to the same value as the test data).
This commit is contained in:
Ben Thorner
2021-08-27 13:13:04 +01:00
parent 194f54c38f
commit a7d92b9058
3 changed files with 5 additions and 7 deletions

View File

@@ -212,7 +212,7 @@ def update_broadcast_message(service_id, broadcast_message_id):
broadcast_message.starts_at = _parse_nullable_datetime(data['starts_at'])
if 'finishes_at' in data:
broadcast_message.finishes_at = _parse_nullable_datetime(data['finishes_at'])
if 'areas' in areas and 'simple_polygons' in areas:
if 'ids' in areas and 'simple_polygons' in areas:
broadcast_message.areas = areas
dao_save_object(broadcast_message)