Skip to content

Commit

Permalink
update flask version and import flask_bower code since it doesn't see…
Browse files Browse the repository at this point in the history
…m maintained anymore
  • Loading branch information
ziirish committed Sep 17, 2021
1 parent b2551b2 commit a793ede
Show file tree
Hide file tree
Showing 6 changed files with 542 additions and 7 deletions.
2 changes: 1 addition & 1 deletion burpui/api/custom/my_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def parse(self, value):
try:
a = arrow.get(value)
a = a.to(TZ)
except arrow.parser.ParserError:
except (arrow.parser.ParserError, TypeError):
return None
return fields.DateTime.parse(self, a.datetime)

Expand Down
2 changes: 1 addition & 1 deletion burpui/api/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def _get_backup_history(self, client=None, server=None, data=None):
if moment in args:
try:
if args[moment] is not None:
moments[moment] = arrow.get(args[moment]).timestamp
moments[moment] = arrow.get(args[moment]).int_timestamp
except arrow.parser.ParserError:
pass

Expand Down
2 changes: 1 addition & 1 deletion burpui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def create_app(conf=None, verbose=0, logfile=None, **kwargs):
"""
from flask import g, request, session
from flask_login import LoginManager
from flask_bower import Bower
from flask_babel import gettext
from .thirdparty.flask_bower import Bower
from .utils import ReverseProxied, lookup_file, is_uuid
from .tools.logging import logger
from .security import basic_login_from_request
Expand Down
Loading

0 comments on commit a793ede

Please sign in to comment.