MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _save_sd_changes_remaining

Method _save_sd_changes_remaining

apps/epg/api_views.py:192–197  ·  view source on GitHub ↗

Persist changesRemaining to EPGSource model field.

(self, source, changes_remaining)

Source from the content-addressed store, hash-verified

190 return changes_remaining
191
192 def _save_sd_changes_remaining(self, source, changes_remaining):
193 """Persist changesRemaining to EPGSource model field."""
194 cp = source.custom_properties or {}
195 cp['sd_changes_remaining'] = changes_remaining
196 source.custom_properties = cp
197 source.save(update_fields=['custom_properties'])
198
199 def _save_sd_lockout(self, source):
200 """

Callers 1

sd_lineupsMethod · 0.95

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected