Skip to content

Commit

Permalink
fix host_info raport
Browse files Browse the repository at this point in the history
  • Loading branch information
KTZgraph committed Jan 15, 2021
1 parent 995e31a commit 3d3f442
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,5 @@ sarenka/backend/backend/cwe_databases

# kurwa karolina zjebala nzowu
sarenka/backend/reports/report_hardware_info.pdf
sarenka/backend/reports/report_host_info.pdf
sarenka/backend/reports/report_host_info.pdf
*.pdf
3 changes: 2 additions & 1 deletion sarenka/backend/reports/hardware_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import requests

class PDFHardwareInfo(FPDF, HTMLMixin):
# TODO wywalic to !!!!!!!!!!!!!


def header(self):
self.set_font('Arial', 'B', 16)


def headerOnlyFirstSide(self):
self.image('../../logo.png',90,15, 30)
# self.image('logo.png',90,15, 30)
self.cell(0, 100, 'Information about your computer', 0, 0, 'C')
self.ln(60)

Expand Down
7 changes: 4 additions & 3 deletions sarenka/backend/reports/host_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
import requests

class PDFHostInfo(FPDF, HTMLMixin):
# TODO wywalic to !!!!!!!!!!!!!


def header(self):
self.set_font('Arial', 'B', 16)


def headerOnlyFirstSide(self,ipAdress):
self.image('../../logo.png',90,15, 30)
self.cell(0, 100, 'Host adress: '+ipAdress, 0, 0, 'C')
self.ln(60)
# self.image('logo.png',90,15, 30)
self.cell(0, 10, 'Host adress: '+ipAdress, 0, 0, 'C')
self.ln(10)


def chapter(self, ipAdress,link):
Expand Down
Binary file added sarenka/backend/reports/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d3f442

Please sign in to comment.