From 98336a11d4a2150ce277f7f6feb165b3c6918815 Mon Sep 17 00:00:00 2001 From: Ayrris Aunario Date: Tue, 12 Mar 2024 14:13:29 -0500 Subject: [PATCH] `compliance rar --report-type=vault` bug-fix (KC-757) --- keepercommander/commands/compliance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keepercommander/commands/compliance.py b/keepercommander/commands/compliance.py index fa132bc34..452b27fc0 100644 --- a/keepercommander/commands/compliance.py +++ b/keepercommander/commands/compliance.py @@ -426,7 +426,7 @@ def compile_user_report(user, access_events): access_records = dict() user_access_data = {user: access_records} rec_uids = access_events.keys() if report_type == report_type_default \ - else {r.record_uid for r in vault_records} + else {r for r in vault_records} for uid in rec_uids: access_event = access_events.get(uid, {}) @@ -579,7 +579,7 @@ def compile_report_data(rec_ids): for name in usernames: vault_records = sox_data.get_vault_records(name) - filter_by_recs = None if report_type == report_type_default else {r.record_uid for r in vault_records} + filter_by_recs = None if report_type == report_type_default else {r for r in vault_records} user_access_events = get_records_accessed(name, filter_by_recs) user_access_lookup.update(compile_user_report(name, user_access_events))