Skip to content

Commit

Permalink
Replaced campaign.name with campaign["id"]
Browse files Browse the repository at this point in the history
Campaign at line 369 is not the Gophish API campaign object, but a dict with the name valued stored with the key value "id"
  • Loading branch information
JCantu248 committed Sep 14, 2021
1 parent cc51ea1 commit 8262bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/gophish_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def export_user_reports(api, assessment_id):

logging.info(
"Writing out user report for campaign %s in assessment %s",
campaign.name,
campaign["id"],
assessment_id,
)

Expand Down

0 comments on commit 8262bed

Please sign in to comment.