Skip to content

Commit

Permalink
Closes #38 (#39)
Browse files Browse the repository at this point in the history
* Support for authentication using external proxy (#33)

* add options for HTTP header authentication to config

* add template for handling error 401: Unauthorized

* support external authentication

Expects authentication to be done using an external tool (such as
Apache), that fills the users UUID to a HTTP header and acts as a
proxy.

* version 0.7.3, simple auth mode available, docs for auth created

* version 0.7.3, simple auth mode available, docs for auth created

* typo in link

* Bugfix/autoescape (#35)

* rename all j2 files back to html

* add Markup to dashboard to render tables from macros

* bugfix - V4 table cols, DOCS update

* bugfix, closes #38

---------

Co-authored-by: Jakub Man <jakub.man@pm.me>
  • Loading branch information
jirivrany and jakubman1 committed Mar 8, 2024
1 parent 673ae7a commit dd2f592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flowapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def to_dict(self, prefered_format="yearfirst"):
"""
if prefered_format == "timestamp":
expires = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.created))
else:
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
created = utils.datetime_to_webpicker(self.created, prefered_format)
Expand Down Expand Up @@ -422,7 +422,7 @@ def to_dict(self, prefered_format="yearfirst"):
"""
if prefered_format == "timestamp":
expires = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.created))
else:
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
created = utils.datetime_to_webpicker(self.created, prefered_format)
Expand Down Expand Up @@ -549,7 +549,7 @@ def to_dict(self, prefered_format="yearfirst"):
"""
if prefered_format == "timestamp":
expires = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.expires))
created = int(datetime.timestamp(self.created))
else:
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
created = utils.datetime_to_webpicker(self.created, prefered_format)
Expand Down

0 comments on commit dd2f592

Please sign in to comment.