Skip to content

Commit

Permalink
Update formatting based on black linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorrowomni committed May 15, 2023
1 parent c26bd1d commit 235e7af
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/tools/gophish_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def export_targets(api, assessment_id):
raw_targets = api.groups.get(group_id).as_dict()["targets"]

for raw_target in raw_targets:

target = dict()

target["id"] = hashlib.sha256(
Expand Down Expand Up @@ -225,7 +224,6 @@ def get_email_status(api, campaign_id):
email["status"] = "SUCCESS"

elif rawEvent["message"] == "Error Sending Email":

email["user"] = hashlib.sha256(
rawEvent["email"].encode("utf-8")
).hexdigest()
Expand Down
1 change: 0 additions & 1 deletion src/tools/gophish_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def add_group(api, assessment_id):
target.first_name = get_input("Enter First Name: ")
# Receives the file name and checks if it exists.
while target.first_name != "done" or target.first_name == "":

target.last_name = get_input("Enter Last Name: ")

while True:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def multiple_gophish_group_object():
def email_target_json():
"""Return a email target JSON with 4 emails matching the Gophish group object."""
targets = list()
for (email, position) in [
for email, position in [
("jane.smith1@domain.tld", "IT"),
("john.doe1@domain.tld", "HR"),
("jane.smith2@domain.tld", "IT"),
Expand Down

0 comments on commit 235e7af

Please sign in to comment.