add NI
This commit is contained in:
3
app.py
3
app.py
@@ -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/"):
|
||||
|
||||
Reference in New Issue
Block a user