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

Method refresh_label_dict

shared/database/project.py:404–414  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

402 self.gen_initial_dir_list)
403
404 def refresh_label_dict(self, session):
405
406 file_list = WorkingDirFileLink.file_list(
407 session = session,
408 working_dir_id = self.directory_default_id,
409 limit = 10000000,
410 type = "label",
411 exclude_removed = False) # eg for permissions
412 if not self.label_dict:
413 self.label_dict = {}
414 self.label_dict['label_file_id_list'] = [file.id for file in file_list]
415
416 def serialize(self,
417 session = None):

Callers 3

new_label_fileMethod · 0.80
create_label_fileFunction · 0.80

Calls 1

file_listMethod · 0.80

Tested by

no test coverage detected