Skip to content

Commit

Permalink
fix: Correct mapping for table_updated_at/table_updated_by (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm authored Mar 16, 2024
1 parent 174e444 commit 44d8055
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions querybook/server/logic/metastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,17 @@ def create_table(
"name": name,
"type": type,
"owner": owner,
"table_created_at": datetime.datetime.fromtimestamp(float(table_created_at))
if table_created_at
else None,
"table_updated_by": datetime.datetime.fromtimestamp(float(table_updated_at))
if table_updated_at
else None,
"table_created_at": (
datetime.datetime.fromtimestamp(float(table_created_at))
if table_created_at
else None
),
"table_updated_at": (
datetime.datetime.fromtimestamp(float(table_updated_at))
if table_updated_at
else None
),
"table_updated_by": table_updated_by,
"data_size_bytes": data_size_bytes,
"location": location,
"column_count": column_count,
Expand Down

0 comments on commit 44d8055

Please sign in to comment.