Skip to content

Commit

Permalink
Fix bug assuming 'metadata' exists for every table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Samuel committed Apr 11, 2019
1 parent 179aed7 commit 42f691a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/tasks/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def refresh_schema(data_source_id):
"column_metadata": "metadata" in table
}
new_column_names[table_name] = table['columns']
new_column_metadata[table_name] = table['metadata']
new_column_metadata[table_name] = table.get('metadata', None)

insert_or_update_table_metadata(ds, existing_tables_set, table_data)
models.db.session.flush()
Expand Down

0 comments on commit 42f691a

Please sign in to comment.