Skip to content

Commit 6bf131c

Browse files
committed
odb: gen.py hash dict
Signed-off-by: osamahammad21 <[email protected]>
1 parent d69ac49 commit 6bf131c

File tree

1 file changed

+1
-1
lines changed
  • src/odb/src/codeGenerator

1 file changed

+1
-1
lines changed

src/odb/src/codeGenerator/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def generate(schema, env, includeDir, srcDir, keep_empty):
292292
generate_relations(schema)
293293

294294
to_be_merged = []
295+
hash_dict = {}
295296
for klass in schema["classes"]:
296297
# Adding functional name to fields and extracting field components
297298
flags_struct = {
@@ -313,7 +314,6 @@ def generate(schema, env, includeDir, srcDir, keep_empty):
313314
klass["h_includes"].append("odb/db.h")
314315
break
315316
# Add hash to class
316-
hash_dict = {}
317317
if "hash" not in klass:
318318
hash_value = fnv1a_32(klass["name"])
319319
else:

0 commit comments

Comments
 (0)