This commit is contained in:
Mateusz Gruszczyński
2026-03-05 08:19:37 +01:00
parent ab06cbc0b7
commit 45fc1c6d55
3 changed files with 11 additions and 9 deletions

3
app.py
View File

@@ -4,6 +4,7 @@ GeoIP Ban Generator - Web Application
from flask import Flask, render_template, request, Response, jsonify
from geoip_handler import GeoIPHandler
from flask import jsonify, render_template, request
from pathlib import Path
from functools import wraps
from datetime import datetime
@@ -116,7 +117,7 @@ def inject_globals():
'redis_connected': redis_cache.health_check()['connected'] if redis_cache else False,
}
from flask import jsonify, render_template, request
def _wants_json():
if request.path.startswith("/api/"):