(tx: Transaction)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected