Skip to content

Commit

Permalink
Removed double call to ConnectorRegistry.sources (#4448)
Browse files Browse the repository at this point in the history
Removing the double call didn't cause any adverse effects upon removal. If required, a comment motivating the double call should be added.
  • Loading branch information
villebro authored and mistercrunch committed Feb 16, 2018
1 parent 7e08296 commit dc48673
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,6 @@ def sqllab_viz(self):
SqlaTable = ConnectorRegistry.sources['table']
data = json.loads(request.form.get('data'))
table_name = data.get('datasourceName')
SqlaTable = ConnectorRegistry.sources['table']
table = (
db.session.query(SqlaTable)
.filter_by(table_name=table_name)
Expand Down

0 comments on commit dc48673

Please sign in to comment.