This commit is contained in:
carnal0wnage
2018-04-19 18:16:32 -04:00
parent 4c7d75ac9f
commit 04475dcb20
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ def list_dynamodb_tables_detailed():
else:
print("### {} DynamoDB Tables ###" .format(region))
for tables in response['TableNames']:
describe_table(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, tables, region)
describe_table(tables, region)
print("\n")
except botocore.exceptions.ClientError as e:

View File

@@ -85,7 +85,7 @@ def insert_sub_service_data(db_name, records):
def search_recon_by_key(db_name,AWSKeyID):
with sqlite3.connect(db_name) as db:
cursor = db.cursor()
cursor.execute("""SELECT service,sub_service,checked_at FROM recon WHERE AWSKeyID=? ORDER BY datetime(checked_at)""",(AWSKeyID,))
cursor.execute("""SELECT DISTINCT service,sub_service,checked_at FROM recon WHERE AWSKeyID=? ORDER BY datetime(checked_at)""",(AWSKeyID,))
results = cursor.fetchall()
return results