updates
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user