Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wdahlenburg committed May 7, 2021
1 parent 7262ff7 commit 58d5615
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/reports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .csv_report import * # noqa: F401
from .plain_text_report import * # noqa: F401
from .simple_report import * # noqa: F401
from .html_report import * # noqa: F401
from .html_report import * # noqa: F401
6 changes: 2 additions & 4 deletions lib/reports/html_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#
# Author: Mauro Soria

import time
import sys
import json
import os
from mako.template import Template
Expand All @@ -27,7 +25,7 @@

class HTMLReport(FileBaseReport):
def generate(self):
template_file= os.path.dirname(os.path.realpath(__file__)) + '/templates/html_report_template.html'
template_file = os.path.dirname(os.path.realpath(__file__)) + '/templates/html_report_template.html'
mytemplate = Template(filename=template_file)

results = []
Expand All @@ -42,7 +40,7 @@ def generate(self):
"status": e.status,
"contentLength": e.getContentLength(),
"redirect": e.response.redirect
})
})

return mytemplate.render(results=json.dumps(results))

Expand Down
8 changes: 4 additions & 4 deletions lib/reports/templates/html_report_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ <h1>dirsearch</h1>
<table v-if="resources.length" class="table">
<tbody>
<tr>
<td>Path</td>
<td>Status</td>
<td>Content Length</td>
<td>Redirect</td>
<th>Path</th>
<th>Status</th>
<th>Content Length</th>
<th>Redirect</th>
</tr>
<tr v-for="result in resultQuery">
<td><a class="text-decoration-none" v-bind:href="result.url" target="_blank">{{result.url}}</a></td>
Expand Down

0 comments on commit 58d5615

Please sign in to comment.