dpgaspar commented on a change in pull request #8280: [superset] Core
SQLAlchemy query refactor
URL:
https://github.com/apache/incubator-superset/pull/8280#discussion_r327283616
##########
File path: superset/views/core.py
##########
@@ -2390,7 +2390,7 @@ def table(self, database_id, table_name, schema):
def extra_table_metadata(self, database_id, table_name, schema):
schema = utils.parse_js_uri_path_item(schema, eval_undefined=True)
table_name = utils.parse_js_uri_path_item(table_name)
- mydb =
db.session.query(models.Database).filter_by(id=database_id).one()
+ mydb = db.session.query(models.Database).get(database_id)
Review comment:
note to self: one for get
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]