MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / commit

Method commit

openlibrary/plugins/upstream/addbook.py:140–143  ·  view source on GitHub ↗

Saves all the collected docs.

(self, **kw)

Source from the content-addressed store, hash-verified

138 self.docs.append(doc)
139
140 def commit(self, **kw) -> None:
141 """Saves all the collected docs."""
142 if self.docs:
143 web.ctx.site.save_many(self.docs, **kw)
144
145 def create_authors_from_form_data(self, authors: list[dict], author_names: list[str], _test: bool = False) -> bool:
146 """

Callers 15

saveMethod · 0.95
POSTMethod · 0.95
upgradeMethod · 0.80
generate_osp_dbFunction · 0.80
newFunction · 0.80
touchFunction · 0.80
deleteFunction · 0.80
update_work_idMethod · 0.80
update_usernameMethod · 0.80
update_submitter_nameMethod · 0.80

Calls 1

save_manyMethod · 0.45

Tested by

no test coverage detected