main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit b43ab082b4 - Show all commits

View File

@@ -101,6 +101,7 @@ class AutomationCron(ModelSQL, ModelView):
if existing:
parties_cache[name_upper] = existing[0]
return existing[0]
if name:
new_p = Party()
new_p.name = name_upper
parties_cache[name_upper] = new_p
@@ -115,6 +116,7 @@ class AutomationCron(ModelSQL, ModelView):
if existing:
vessels_cache[name_upper] = existing[0]
return existing[0]
if name:
new_v = Vessel()
new_v.vessel_name = name_upper
new_v.vessel_imo = imo
@@ -130,6 +132,7 @@ class AutomationCron(ModelSQL, ModelView):
if existing:
locations_cache[key] = existing[0]
return existing[0]
if name:
new_loc = Location()
new_loc.name = name.upper()
new_loc.type = type_