MCPcopy Create free account
hub / github.com/diffgram/diffgram / update_string_id

Method update_string_id

shared/database/action/workflow.py:205–215  ·  view source on GitHub ↗
(
        session,
        workflow)

Source from the content-addressed store, hash-verified

203
204 @staticmethod
205 def update_string_id(
206 session,
207 workflow):
208
209 # Not super happy with this here...
210 if workflow.name is None:
211 workflow.name = "Untitled flow"
212
213 workflow.string_id = safe_name(workflow.name)
214
215 workflow.string_id += f"_{create_random_string(length=20)}"
216
217
218 def serialize_with_actions(self, session):

Callers 2

flow_update_coreFunction · 0.80
newMethod · 0.80

Calls 2

safe_nameFunction · 0.85
create_random_stringFunction · 0.70

Tested by

no test coverage detected