Skip to content

Commit

Permalink
Merge pull request #546 from GhostManager/hotfix/linting-changes
Browse files Browse the repository at this point in the history
Hotfix: Linting changes
  • Loading branch information
chrismaddalena authored Oct 30, 2024
2 parents ef58d5f + 85852a4 commit c632a60
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# CHANGELOG

## [4.3.5] - 30 October 2024

### Changed

* The `added_as_blank` attribute for findings is now included in the template linter

### Fixed

* Fixed `false` values appearing as `""` in the report template context after release v4.3.4

## [4.3.4] - 24 October 2024

### Changed
Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
v4.3.4
24 October 2024
v4.3.5
30 October 2024
4 changes: 2 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# 3rd Party Libraries
import environ

__version__ = "4.3.4"
__version__ = "4.3.5"
VERSION = __version__
RELEASE_DATE = "24 October 2024"
RELEASE_DATE = "30 October 2024"

ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
APPS_DIR = ROOT_DIR / "ghostwriter"
Expand Down
2 changes: 1 addition & 1 deletion ghostwriter/modules/custom_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def to_representation(self, instance):
data = super().to_representation(instance)
for key, value in data.items():
try:
if not value:
if value is None:
data[key] = ""
except KeyError:
pass
Expand Down
1 change: 1 addition & 0 deletions ghostwriter/modules/linting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
"finding_type": "Network",
"severity": "Critical",
"severity_rt": "Critical",
"added_as_blank": True,
"cvss_score": "",
"cvss_score_rt": "",
"cvss_vector": "",
Expand Down

0 comments on commit c632a60

Please sign in to comment.