|
|
|
@ -1,4 +1,5 @@
|
|
|
|
import dataclasses
|
|
|
|
import dataclasses
|
|
|
|
|
|
|
|
import datetime
|
|
|
|
import logging
|
|
|
|
import logging
|
|
|
|
from collections.abc import Mapping, Sequence
|
|
|
|
from collections.abc import Mapping, Sequence
|
|
|
|
from typing import Any, ClassVar
|
|
|
|
from typing import Any, ClassVar
|
|
|
|
@ -193,6 +194,7 @@ class WorkflowDraftVariableService:
|
|
|
|
variable.set_name(name)
|
|
|
|
variable.set_name(name)
|
|
|
|
if value is not None:
|
|
|
|
if value is not None:
|
|
|
|
variable.set_value(value)
|
|
|
|
variable.set_value(value)
|
|
|
|
|
|
|
|
variable.last_edited_at = datetime.datetime.now(datetime.UTC).replace(tzinfo=None)
|
|
|
|
self._session.flush()
|
|
|
|
self._session.flush()
|
|
|
|
return variable
|
|
|
|
return variable
|
|
|
|
|
|
|
|
|
|
|
|
|