Skip to content

Commit

Permalink
fix report path
Browse files Browse the repository at this point in the history
  • Loading branch information
98jfran committed Jun 30, 2020
1 parent 4516ffa commit 1772df2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def generate_report_summary(report, app_report, fileset = None):
info_report["artifacts"] = len(report.keys()) - 1 #ignore header

if fileset:
info_report["link"] = "../../ModuleOutput/AndroidForensics/{}/{}/{}/report.html".format(fileset, info_report["app_id"], app_report)
info_report["link"] = "../../ModuleOutput/FAMA/{}/{}/{}/report.html".format(fileset, info_report["app_id"], app_report)
else:
info_report["link"] = "{}/{}/report.html".format(info_report["app_id"], app_report)

Expand Down
18 changes: 18 additions & 0 deletions package/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,21 @@ def get_sorted_timeline(self, reverse=True):
self.timeline.sort(key=self.get_value, reverse=reverse)
return self.timeline


# class NewModel:
# def __init__(self):
# self.my_model = []

# def add(self, timestamp, obj):
# entry = {
# "timestamp": timestamp,
# "value": obj
# }
# self.myModel.append(entry)

# def reverse(self):
# self.my_model.reverse()

# def get_my_model(self):
# return self.my_model

2 changes: 1 addition & 1 deletion psy/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def generateReport(self, baseReportDir, progressBar):

progressBar.updateStatusLabel("Finding source data")

self.tempDirectory = os.path.join(Case.getCurrentCase().getModulesOutputDirAbsPath(), "AndroidForensics")
self.tempDirectory = os.path.join(Case.getCurrentCase().getModulesOutputDirAbsPath(), "FAMA")

if not os.path.exists(self.tempDirectory):
progressBar.complete(ReportStatus.ERROR)
Expand Down

0 comments on commit 1772df2

Please sign in to comment.