Skip to content

Commit 89a6cb8

Browse files
szabozoltan69sudip-khanal
authored andcommitted
Fix synx_molnix position_id issue
1 parent 45ddbdf commit 89a6cb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/management/commands/sync_molnix.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ def sync_deployments(molnix_deployments, molnix_api, countries):
332332
warnings.append(warning)
333333
prt("Deployment did not find SurgeAlert in lack of position_id", md["id"])
334334
continue
335+
elif md["position_id"]:
336+
warning = "%d deployment did not find SurgeAlert in lack of Molnix position_id" % md["id"]
337+
logger.warning(warning)
338+
warnings.append(warning)
339+
prt("Deployment did not find SurgeAlert in lack of position_id", md["id"])
340+
continue
335341
elif md["position_id"]:
336342
surge_alert = SurgeAlert.objects.get(molnix_id=md["position_id"])
337343
except Exception:

0 commit comments

Comments
 (0)