Skip to content

Commit

Permalink
Unexpected Account Transfer prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed Sep 3, 2024
1 parent 2224f3f commit 519bbae
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions keepercommander/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ def queue_audit_event(self, name, **kwargs):
rest_context = property(__get_rest_context)

def get_share_account_timestamp(self):
if self.settings and 'share_account_to' in self.settings and 'must_perform_account_share_by' in self.settings:
return datetime.fromtimestamp(int(self.settings['must_perform_account_share_by']) // 1000)
else:
return None
if isinstance(self.settings, dict):
share_account_to = self.settings.get('share_account_to')
must_perform_account_share_by = self.settings.get('must_perform_account_share_by')
if isinstance(share_account_to, list) and len(share_account_to) > 0 and must_perform_account_share_by:
if isinstance(must_perform_account_share_by, str):
if must_perform_account_share_by.isnumeric():
must_perform_account_share_by = int(must_perform_account_share_by)
if isinstance(must_perform_account_share_by, int) and must_perform_account_share_by > 0:
return datetime.fromtimestamp(must_perform_account_share_by // 1000)
return None

0 comments on commit 519bbae

Please sign in to comment.