Skip to content

Commit

Permalink
Whitespace updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSecDef committed Mar 1, 2021
1 parent f257d18 commit 4c8f2b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,26 +1383,26 @@ def rpt_asset_traceability(self):

scan_date = datetime.datetime.strptime(scan['scan_date'], '%a %b %d %H:%M:%S %Y')
if scan['feed']:
feed = datetime.datetime.strptime(scan['feed'], '%Y%m%d%H%M')
feed = datetime.datetime.strptime(scan['feed'], '%Y%m%d%H%M')
else:
feed = ''

if host['scan_details']:
for line in host['scan_details'].split('\n'):
if 'Plugin feed version' in line:
k,v = line.split(':', 1)
try:
feed = datetime.datetime.strptime(str(v).strip(), '%Y%m%d%H%M')
except:
pass

if 'Scan Start Date' in line:
k,v = line.split(':', 1)
try:
scan_date = datetime.datetime.strptime( str(v).strip() , '%Y/%m/%d %H:%M %Z')
except:
pass

for line in host['scan_details'].split('\n'):
if 'Plugin feed version' in line:
k,v = line.split(':', 1)
try:
feed = datetime.datetime.strptime(str(v).strip(), '%Y%m%d%H%M')
except:
pass
if 'Scan Start Date' in line:
k,v = line.split(':', 1)
try:
scan_date = datetime.datetime.strptime( str(v).strip() , '%Y/%m/%d %H:%M %Z')
except:
pass
# print(scan_date, feed)

hardware.append({
Expand Down
2 changes: 1 addition & 1 deletion scans2reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def generate_reports(self):
logging.info(status)

if main_app.main_window:
main_app.main_window.progressBar.setValue(int(100*index/(len(total_reports))*.9) )
main_app.main_window.progressBar.setValue( int(100*index/(len(total_reports))*.9) )
QtGui.QGuiApplication.processEvents()
getattr(reports, report)()

Expand Down

0 comments on commit 4c8f2b9

Please sign in to comment.