Skip to content

Commit e067b9e

Browse files
committed
Excluded Neo4j init file from Jinja2
The Cookiecutter templating with Jinja2 was crashing on the string processing for making Neo4j db queries.
1 parent 84b8eeb commit e067b9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cookiecutter.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"frontend/**/*.vue",
4747
"frontend/.nuxt/*",
4848
"frontend/node_modules/*",
49-
"backend/app/app/email-templates/**"
49+
"backend/app/app/email-templates/**",
50+
"backend/app/app/gdb/**"
5051
]
5152
}

{{cookiecutter.project_slug}}/backend/app/app/gdb/init_gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def createNodeIndices():
2828
indices = []
2929
for (index, node, key, analyzer) in indices:
3030
try:
31-
q = f"CALL db.index.fulltext.createNodeIndex('{index}',['{node}'],['{key}'], {{analyzer: '{analyzer}'}})" # noqa
31+
q = f"CALL db.index.fulltext.createNodeIndex('{index}',['{node}'],['{key}'], {{analyzer: '{analyzer}'}})"
3232
db.cypher_query(q)
3333
except ClientError:
3434
pass

0 commit comments

Comments
 (0)