MCPcopy
hub / github.com/beetbox/beets / save_changes

Method save_changes

beetsplug/edit.py:324–330  ·  view source on GitHub ↗

Save a list of updated Model objects to the database.

(self, objs)

Source from the content-addressed store, hash-verified

322 apply_(obj_by_id[id_], new_dict)
323
324 def save_changes(self, objs):
325 """Save a list of updated Model objects to the database."""
326 # Save to the database and possibly write tags.
327 for ob in objs:
328 if ob._dirty:
329 self._log.debug("saving changes to {}", ob)
330 ob.try_sync(ui.should_write(), ui.should_move())
331
332 # Methods for interactive importer execution.
333

Callers 1

editMethod · 0.95

Calls 2

debugMethod · 0.45
try_syncMethod · 0.45

Tested by

no test coverage detected