Skip to content

Commit 2dfd60b

Browse files
committed
Use countryless positions in sync_molnix
1 parent 25c23f9 commit 2dfd60b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/management/commands/sync_molnix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@ def sync_open_positions(molnix_positions, molnix_api, countries):
452452
event = get_go_event(position["tags"])
453453
country = get_go_country(countries, position["country_id"])
454454
if not country:
455-
warning = "Position id %d does not have a valid Country" % position["id"]
455+
warning = "Position id %d does not have a valid Country, we import it with an empty one" % position["id"]
456456
logger.warning(warning)
457457
warnings.append(warning)
458-
continue
458+
# Do not skip these countryless positions, remove "continue" from code.
459459
# If no valid GO Emergency tag is found, skip Position
460460
if not event:
461461
warning = "Position id %d does not have a valid Emergency tag." % position["id"]

0 commit comments

Comments
 (0)