Skip to content

Commit

Permalink
export_to_datastore refact
Browse files Browse the repository at this point in the history
  • Loading branch information
paul.marcombes committed Dec 3, 2024
1 parent a01d532 commit 000a43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigfunctions/export/export_to_datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ code: | #python
entities = []
for row in rows:
datastore_path, key, data = row
assert len(datastore_path.split('.') == 4), '`datastore_path` must be like `project/database/namespace/kind`'
assert len(datastore_path.split('.')) == 4, '`datastore_path` must be like `project/database/namespace/kind`'
project, database, namespace, kind = datastore_path.split('.')
assert project != 'bigfunctions' or kind != 'bigfunction_call', 'Forbidden to write here'
Expand Down

0 comments on commit 000a43e

Please sign in to comment.