Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,9 @@ async def expand_node(element_id: str) -> dict:

async def reset_database() -> None:
"""Drop all data and recreate schema."""
Comment thread
unshDee marked this conversation as resolved.
Outdated
await execute_cypher("MATCH (n) DETACH DELETE n", collect=False)
await connect_neo4j()
try:
await execute_cypher("MATCH (n) DETACH DELETE n", collect=False)
finally:
await close_neo4j()
Comment thread
unshDee marked this conversation as resolved.
Outdated
{% endraw %}
Loading