fix: androguard useless dep

This commit is contained in:
Florian Bezannier
2026-05-20 18:58:51 +02:00
committed by Florian BEZANNIER
parent 2e3dd39d3b
commit ac8c029727
4 changed files with 1264 additions and 1489 deletions
Generated
+1252 -1485
View File
File diff suppressed because it is too large Load Diff
+10 -2
View File
@@ -42,8 +42,16 @@ class MyProxyFix(ProxyFix):
self.dash_app.requests_pathname_external_prefix = prefix
self.dash_app.config.assets_external_path = prefix
else:
self.flask_app.config['APPLICATION_ROOT'] = self.dash_app.config.requests_pathname_prefix
self.dash_app.requests_pathname_external_prefix = self.dash_app.config.requests_pathname_prefix
# In Dash 4.0, requests_pathname_prefix is "/" when base_path is "/"
# but APPLICATION_ROOT should be None (not "/") for root-mounted apps
rpp = self.dash_app.config.requests_pathname_prefix
# APPLICATION_ROOT should not have trailing slash (Flask convention)
if rpp and rpp != "/":
self.flask_app.config['APPLICATION_ROOT'] = rpp.rstrip('/')
else:
self.flask_app.config['APPLICATION_ROOT'] = None
# requests_pathname_external_prefix should be empty string for root
self.dash_app.requests_pathname_external_prefix = rpp if rpp and rpp != "/" else ""
return super().__call__(environ, start_response)
+1 -1
View File
@@ -383,7 +383,7 @@ try:
update_trips()
Database.set_db_callback(update_trips)
except (IndexError, TypeError, AttributeError):
logger.debug("Failed to get trips, there is probably not enough data yet:", exc_info=True)
logger.error("Failed to get trips, there is probably not enough data yet:", exc_info=True)
dash_app.layout = dbc.Container(fluid=True, children=[dcc.Location(id='url', refresh=False),
html.Div(id='page-content')],
+1 -1
View File
@@ -27,7 +27,7 @@ pytz = "^2021.0"
argparse = "^1.4.0"
geojson = "^2.5.0"
reverse-geocode = "^1.4.1"
androguard = "^4.1.2"
androguard = { git = "https://github.com/androguard/androguard.git", branch = "master" }
playwright = ">=1.40.0"
pycryptodomex = "3.23.0" # Pin version as they introduce breaking changes in minor versions
pydantic = "^1.9.0"