fix: middleware order, geolocation NameError, packaging, and test correctness
- Move geolocation.py from repo root into aisbf/ package (correct location) - Fix NameError: call geolocation.get_ip_country() with module prefix in APIBlockingMiddleware - Fix middleware execution order: register DashboardBlockingMiddleware and APIBlockingMiddleware before ProxyHeadersMiddleware so proxy headers are decoded first (last added = first executed in Starlette) - Fix typo: is_ip_genocidial -> is_ip_genocidal in aisbf/geolocation.py - Fix tests: update import path to aisbf.geolocation and use AsyncMock so httpx coroutines are properly awaitable - Add aisbf/geolocation.py and templates/blocked.html to setup.py data_files - Add trailing newlines to geolocation.py, blocked.html, and test file - Add static/i18n.js and static/i18n/*.json locale files
Showing
static/i18n.js
0 → 100644
static/i18n/af.json
0 → 100644
static/i18n/ar.json
0 → 100644
static/i18n/bn.json
0 → 100644
static/i18n/cs.json
0 → 100644
static/i18n/da.json
0 → 100644
static/i18n/de.json
0 → 100644
static/i18n/el.json
0 → 100644
static/i18n/en.json
0 → 100644
static/i18n/eo.json
0 → 100644
static/i18n/es.json
0 → 100644
static/i18n/fa.json
0 → 100644
static/i18n/fi.json
0 → 100644
static/i18n/fr.json
0 → 100644
static/i18n/he.json
0 → 100644
static/i18n/hi.json
0 → 100644
static/i18n/hu.json
0 → 100644
static/i18n/id.json
0 → 100644
static/i18n/it.json
0 → 100644
static/i18n/ja.json
0 → 100644
static/i18n/ko.json
0 → 100644
static/i18n/ms.json
0 → 100644
static/i18n/nb.json
0 → 100644
static/i18n/nl.json
0 → 100644
static/i18n/pl.json
0 → 100644
static/i18n/pt.json
0 → 100644
static/i18n/qya.json
0 → 100644
static/i18n/ro.json
0 → 100644
static/i18n/ru.json
0 → 100644
static/i18n/sk.json
0 → 100644
static/i18n/sv.json
0 → 100644
static/i18n/th.json
0 → 100644
static/i18n/tlh.json
0 → 100644
static/i18n/tr.json
0 → 100644
static/i18n/uk.json
0 → 100644
static/i18n/vi.json
0 → 100644
static/i18n/vul.json
0 → 100644
static/i18n/xh.json
0 → 100644
static/i18n/zh.json
0 → 100644
static/i18n/zu.json
0 → 100644
This diff is collapsed.
Please
register
or
sign in
to comment