Skip to content

Commit

Permalink
code style, name method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderlz committed Mar 23, 2016
1 parent ad95a5e commit 7bb80e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions redash/query_runner/dynamodb_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def annotate_query(cls):

@classmethod
def type(cls):
return "ddb_sql"
return "dynamodb_sql"

@classmethod
def name(cls):
return "DynamoDB (with DQL)"

def __init__(self, configuration):
super(DynamoDBSQL, self).__init__(configuration)
Expand All @@ -99,11 +103,11 @@ def run_query(self, query):
engine = FragmentEngine()
connection = engine.connect(**self.configuration.to_dict())

resDict = engine.execute(query if str(query).endswith(';') else str(query)+';')
res_dict = engine.execute(query if str(query).endswith(';') else str(query)+';')

columns = []
rows = []
for item in resDict:
for item in res_dict:

if not columns:
for k, v in item.iteritems():
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ python-dateutil==2.4.2
pytz==2015.7
redis==2.7.5
requests==2.3.0
botocore==1.4.4
six==1.10.0
sqlparse==0.1.8
wsgiref==0.1.2
Expand Down
1 change: 1 addition & 0 deletions requirements_all_ds.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ td-client==0.4.1
pymssql==2.1.1
dql==0.5.16
dynamo3==0.4.7
botocore==1.4.4

0 comments on commit 7bb80e3

Please sign in to comment.