Skip to content

Commit 9ba0fca

Browse files
committed
Version bump
1 parent f1eba96 commit 9ba0fca

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.1.1"
9+
version = "2.1.2"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.1.1'
2+
__version__ = '2.1.2'

socketsecurity/core/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from socketdev.org import Organization
1616
from socketdev.repos import RepositoryInfo
1717
from socketdev.settings import SecurityPolicyRule
18-
18+
import copy
1919
from socketsecurity import __version__
2020
from socketsecurity.core.classes import (
2121
Alert,
@@ -628,10 +628,8 @@ def create_new_diff(
628628
head_full_scan_id = None
629629

630630
if head_full_scan_id is None:
631-
new_params = {}
632-
for key, value in params.__dict__.items():
633-
if key != 'include_license_details':
634-
new_params[key] = value
631+
new_params = copy.deepcopy(params.__dict__)
632+
new_params.pop('include_license_details')
635633
tmp_params = FullScanParams(**new_params)
636634
tmp_params.include_license_details = params.include_license_details
637635
tmp_params.tmp = True

0 commit comments

Comments
 (0)