• Stefy Lanza (nextime / spora )'s avatar
    fix: middleware order, geolocation NameError, packaging, and test correctness · 8cdcee5f
    Stefy Lanza (nextime / spora ) authored
    - 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
    8cdcee5f
Name
Last commit
Last update
..
af.json Loading commit data...
ar.json Loading commit data...
bn.json Loading commit data...
cs.json Loading commit data...
da.json Loading commit data...
de.json Loading commit data...
el.json Loading commit data...
en.json Loading commit data...
eo.json Loading commit data...
es.json Loading commit data...
fa.json Loading commit data...
fi.json Loading commit data...
fr.json Loading commit data...
he.json Loading commit data...
hi.json Loading commit data...
hu.json Loading commit data...
id.json Loading commit data...
it.json Loading commit data...
ja.json Loading commit data...
ko.json Loading commit data...
ms.json Loading commit data...
nb.json Loading commit data...
nl.json Loading commit data...
pl.json Loading commit data...
pt.json Loading commit data...
qya.json Loading commit data...
ro.json Loading commit data...
ru.json Loading commit data...
sk.json Loading commit data...
sv.json Loading commit data...
th.json Loading commit data...
tlh.json Loading commit data...
tr.json Loading commit data...
uk.json Loading commit data...
vi.json Loading commit data...
vul.json Loading commit data...
xh.json Loading commit data...
zh.json Loading commit data...
zu.json Loading commit data...