Cleaned up directory checking and made screenshot in report section more aesthetic.

This commit is contained in:
NotoriousRebel 2020-07-05 11:11:24 -04:00
parent 6b618d8869
commit 2f5213db38
2 changed files with 4 additions and 2 deletions

View file

@ -293,8 +293,8 @@ async def generatescreenshots(tups: List):
data:tabledata, //assign data to table
layout:"fitColumns", //fit columns to width of table (optional)
columns:[ //Define Table Columns
{title:"Date", field:"date", width:150},
{title:"Domain", field:"domain", hozAlign:"left", headerFilter:"select" },
{title:"Date", field:"date", width:200},
{title:"Domain", field:"domain", hozAlign:"left", headerFilter:"select", width:300 },
{title:"Screenshot", field:"icon", align:"center", formatter:"image"},
]
},

View file

@ -25,6 +25,8 @@ def verify_path(self):
if answer.lower() == 'yes' or answer.lower() == 'y':
os.mkdir(self.output)
return True
else:
return False
return True
except Exception as e:
print(f"An exception has occurred while attempting to verify output path's existence: {e}")