Persist changesRemaining to EPGSource model field.
(self, source, changes_remaining)
| 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 | """ |