Skip to content

Commit dd2f592

Browse files
jirivranyjakubman1
andauthored
Closes #38 (#39)
* 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 <[email protected]>
1 parent 673ae7a commit dd2f592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flowapp/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def to_dict(self, prefered_format="yearfirst"):
273273
"""
274274
if prefered_format == "timestamp":
275275
expires = int(datetime.timestamp(self.expires))
276-
created = int(datetime.timestamp(self.expires))
276+
created = int(datetime.timestamp(self.created))
277277
else:
278278
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
279279
created = utils.datetime_to_webpicker(self.created, prefered_format)
@@ -422,7 +422,7 @@ def to_dict(self, prefered_format="yearfirst"):
422422
"""
423423
if prefered_format == "timestamp":
424424
expires = int(datetime.timestamp(self.expires))
425-
created = int(datetime.timestamp(self.expires))
425+
created = int(datetime.timestamp(self.created))
426426
else:
427427
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
428428
created = utils.datetime_to_webpicker(self.created, prefered_format)
@@ -549,7 +549,7 @@ def to_dict(self, prefered_format="yearfirst"):
549549
"""
550550
if prefered_format == "timestamp":
551551
expires = int(datetime.timestamp(self.expires))
552-
created = int(datetime.timestamp(self.expires))
552+
created = int(datetime.timestamp(self.created))
553553
else:
554554
expires = utils.datetime_to_webpicker(self.expires, prefered_format)
555555
created = utils.datetime_to_webpicker(self.created, prefered_format)

0 commit comments

Comments
 (0)