From 42d57246573e7445a78367bb094bca9f3a66001a Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Mon, 2 Oct 2023 10:43:00 -0300 Subject: [PATCH] Make sure DB has default arg for update_lane_size script --- core/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts.py b/core/scripts.py index 62290e4575..a405ec1422 100644 --- a/core/scripts.py +++ b/core/scripts.py @@ -2645,7 +2645,7 @@ def add_line(id, name, protocol, metadata_identifier): class UpdateLaneSizeScript(LaneSweeperScript): - def __init__(self, _db, *args, **kwargs): + def __init__(self, _db=None, *args, **kwargs): super().__init__(_db, *args, **kwargs) search = kwargs.get("search_index_client", None) self._search: ExternalSearchIndex = search or ExternalSearchIndex(self._db)