From 9fcab047a30bd15d29fe5a5b14390142d2c7c1ec Mon Sep 17 00:00:00 2001 From: brice-syslogic <65510350+brice-syslogic@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:49:29 -0700 Subject: [PATCH] Lint fixes --- mobsf/MobSF/views/scanning.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobsf/MobSF/views/scanning.py b/mobsf/MobSF/views/scanning.py index 5bf581d751..370c508adf 100644 --- a/mobsf/MobSF/views/scanning.py +++ b/mobsf/MobSF/views/scanning.py @@ -24,6 +24,8 @@ def add_to_recent_scan(data): try: db_obj = RecentScansDB.objects.filter(MD5=data['hash']) if not db_obj.exists(): + classification = data.get('data_privacy_classification', '') + attributes = data.get('data_privacy_attributes', '') new_db_obj = RecentScansDB( ANALYZER=data['analyzer'], SCAN_TYPE=data['scan_type'], @@ -41,10 +43,8 @@ def add_to_recent_scan(data): EMAIL=data.get('email', ''), USER_GROUPS=data.get('user_groups', ''), RELEASE=data.get('release', False), - DATA_PRIVACY_CLASSIFICATION= - data.get('data_privacy_classification', ''), - DATA_PRIVACY_ATTRIBUTES= - data.get('data_privacy_attributes', '')) + DATA_PRIVACY_CLASSIFICATION=classification, + DATA_PRIVACY_ATTRIBUTES=attributes) new_db_obj.save() else: