Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brice-syslogic committed Sep 30, 2024
1 parent fef8820 commit 9fcab04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mobsf/MobSF/views/scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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:
Expand Down

0 comments on commit 9fcab04

Please sign in to comment.