Skip to content

Commit 755be9b

Browse files
Update datajoint/declare.py
Co-authored-by: Dimitri Yatsenko <dimitri@datajoint.com>
1 parent 48b5114 commit 755be9b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

datajoint/declare.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,12 @@ def declare(full_table_name, definition, context):
315315
"`_{full_table_name}_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP"
316316
]
317317
attribute_sql.extend(
318-
[
319-
attr.format(
320-
full_table_name=sha1(
321-
full_table_name.replace("`", "").encode("utf-8")
322-
).hexdigest()
323-
)
324-
for attr in metadata_attr_sql
325-
]
318+
attr.format(
319+
full_table_name=sha1(
320+
full_table_name.replace("`", "").encode("utf-8")
321+
).hexdigest()
322+
)
323+
for attr in metadata_attr_sql
326324
)
327325

328326
if not primary_key:

0 commit comments

Comments
 (0)