fix placement of cur.close
gitea/wcs/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pierre Ducroquet 2024-02-29 13:19:17 +01:00
parent 01f74d5c4b
commit aa33052887
1 changed files with 1 additions and 1 deletions

View File

@ -4893,7 +4893,6 @@ class SearchableFormDef(SqlMixin):
% (cls._table_name, cls._table_name)
)
cls.do_indexes(cur)
cur.close()
from wcs.carddef import CardDef
from wcs.formdef import FormDef
@ -4903,6 +4902,7 @@ class SearchableFormDef(SqlMixin):
):
cls.update(obj=objectdef)
init_search_tokens_data(cur)
cur.close()
@classmethod
def update(cls, obj=None, removed_obj_type=None, removed_obj_id=None):