MCPcopy Index your code
hub / github.com/diffgram/diffgram / new

Method new

shared/database/system_configs/system_configs.py:50–66  ·  view source on GitHub ↗
(session,
            logo_id: int = None,
            add_to_session = True,
            flush_session = True)

Source from the content-addressed store, hash-verified

48 return result
49 @staticmethod
50 def new(session,
51 logo_id: int = None,
52 add_to_session = True,
53 flush_session = True):
54
55 configs = SystemConfigs(
56 logo_id = logo_id,
57 )
58 if add_to_session:
59 session.add(configs)
60 if flush_session:
61 session.flush()
62
63 # Try commit
64 commit_with_rollback(session)
65
66 return configs

Callers 2

set_logoMethod · 0.45
get_configsMethod · 0.45

Calls 3

commit_with_rollbackFunction · 0.90
SystemConfigsClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected