MCPcopy Create free account
hub / github.com/clockworknowledge/menome_processor / create_document

Function create_document

app/routers/document.py:170–183  ·  view source on GitHub ↗
(tx: Transaction)

Source from the content-addressed store, hash-verified

168 """
169 with driver.session() as session:
170 def create_document(tx: Transaction):
171 return tx.run(query, {
172 "uuid": documentId,
173 "name": title,
174 "url": request.url,
175 "text": text,
176 "note": note,
177 "imageurl": imageurl,
178 "publisher": publisher,
179 "addeddate": utc_now,
180 "thumbnail": thumbnail,
181 "wordcount": wordcount,
182 "useruuid": current_user.uuid
183 }).consume()
184 session.write_transaction(create_document)
185
186 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected