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

Method refresh_instance_count

shared/annotation.py:1644–1655  ·  view source on GitHub ↗

For now we assume that if we have initialized the existing instance list that we wish to refresh this value.

(self)

Source from the content-addressed store, hash-verified

1642 self.file.count_instances_changed += 1
1643
1644 def refresh_instance_count(self):
1645 """
1646 For now we assume that if we have initialized the existing instance list
1647 that we wish to refresh this value.
1648 """
1649 if self.do_init_existing_instances is False:
1650 return
1651
1652 self.file.count_instances = 0
1653 for instance in self.instance_list_existing:
1654 if instance.soft_delete is False:
1655 self.file.count_instances += 1
1656
1657 def update_instance_count(self, action_type = None):
1658 """

Callers 1

__post_init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected