Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update presenters #189

Merged
merged 4 commits into from
Nov 29, 2023
Merged

Update presenters #189

merged 4 commits into from
Nov 29, 2023

Conversation

multiflexi
Copy link
Contributor

  • updated dockerfile
  • updated requirements
  • new pdf_presenter because wkhtmltopdf is deprecated and Alpine Linux does not ship it anymore. This is using weasyprint instead. This WILL BREAK existing installs, because the PDF template is just one file, therefore template redesign is necessary and also new PDF product needs to be created.
  • fixed some deprecated Python 2 syntax
  • some other minor things (unused variables, formatting)


if not request.headers.has_key('Authorization') or request.headers['Authorization'] != ('Bearer ' + api_key):
return {'error': 'not authorized'}, 401
if "Authorization" not in request.headers.keys() or request.headers["Authorization"] != ("Bearer " + api_key):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test and remove .keys()

@milankowww milankowww merged commit 0c5b3d2 into SK-CERT:main Nov 29, 2023
2 checks passed
@multiflexi multiflexi deleted the update_presenters branch November 29, 2023 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants