updates
This commit is contained in:
@@ -63,7 +63,7 @@ def list_dynamodb_tables_detailed():
|
|||||||
else:
|
else:
|
||||||
print("### {} DynamoDB Tables ###" .format(region))
|
print("### {} DynamoDB Tables ###" .format(region))
|
||||||
for tables in response['TableNames']:
|
for tables in response['TableNames']:
|
||||||
describe_table(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, tables, region)
|
describe_table(tables, region)
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
except botocore.exceptions.ClientError as e:
|
except botocore.exceptions.ClientError as e:
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ def insert_sub_service_data(db_name, records):
|
|||||||
def search_recon_by_key(db_name,AWSKeyID):
|
def search_recon_by_key(db_name,AWSKeyID):
|
||||||
with sqlite3.connect(db_name) as db:
|
with sqlite3.connect(db_name) as db:
|
||||||
cursor = db.cursor()
|
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()
|
results = cursor.fetchall()
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user