Removed sonarqube issues tagged clumsy

This commit is contained in:
Abby Gourlay 2020-08-02 15:46:32 +01:00
parent da21f49928
commit 98c86304fe
9 changed files with 42 additions and 65 deletions

View file

@ -82,9 +82,8 @@ class Credentials(object):
if existing['Id'] == server['Id']:
# Merge the data
if server.get('DateLastAccessed'):
if self._date_object(server['DateLastAccessed']) > self._date_object(existing['DateLastAccessed']):
existing['DateLastAccessed'] = server['DateLastAccessed']
if server.get('DateLastAccessed') and self._date_object(server['DateLastAccessed']) > self._date_object(existing['DateLastAccessed']):
existing['DateLastAccessed'] = server['DateLastAccessed']
if server.get('UserLinkType'):
existing['UserLinkType'] = server['UserLinkType']