Skip to content

Commit

Permalink
Update dojo/api_v2/serializers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Maffucci <[email protected]>
  • Loading branch information
hblankenship and Maffooch authored Dec 18, 2024
1 parent abeec99 commit ea64528
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,23 +394,6 @@ class BurpRawRequestResponseMultiSerializer(serializers.ModelSerializer):
burpRequestBase64 = serializers.CharField()
burpResponseBase64 = serializers.CharField()

Check failure on line 395 in dojo/api_v2/serializers.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E303)

dojo/api_v2/serializers.py:395:5: E303 Too many blank lines (2)

def get_stringrequest(self, obj) -> str:
result = ""
if isinstance(obj, dict):
result = obj.get("string_request", "")
elif obj.string_request:
result = obj.string_request

return result

def get_stringresponse(self, obj) -> str:
result = ""
if isinstance(obj, dict):
result = obj.get("string_response", "")
elif obj.string_response:
result = obj.string_response

return result

def to_representation(self, data):

Check failure on line 398 in dojo/api_v2/serializers.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E303)

dojo/api_v2/serializers.py:398:5: E303 Too many blank lines (2)
return {
Expand Down

0 comments on commit ea64528

Please sign in to comment.