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

Method add

shared/database/project_directory_list.py:112–131  ·  view source on GitHub ↗

Create a new link (adds to session too) session, working_dir_id, project_id

(session,
            working_dir_id,
            project_id,
            nickname=None
            )

Source from the content-addressed store, hash-verified

110
111 @staticmethod
112 def add(session,
113 working_dir_id,
114 project_id,
115 nickname=None
116 ):
117 """
118 Create a new link (adds to session too)
119
120 session,
121 working_dir_id,
122 project_id
123 """
124
125 link = Project_Directory_List(
126 working_dir_id=working_dir_id,
127 project_id=project_id,
128 nickname=nickname
129 )
130
131 session.add(link)
132
133 # CAUTION only for init with a project, not general new
134 @staticmethod

Callers 7

add_defaultMethod · 0.45
bind_to_oidc_loginMethod · 0.45
set_working_dirMethod · 0.45
new_login_historyFunction · 0.45
newMethod · 0.45
get_label_listMethod · 0.45
get_with_cacheMethod · 0.45

Calls 1

Tested by

no test coverage detected