redis test 2

This commit is contained in:
matt committed 2026-10-13 02:44:35 -07:00
1 parent 0fc8209d4c
commit be8a70ab81
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ from flask import Flask, jsonify
from flask_apscheduler import APScheduler
from datetime import datetime, timedelta
from scanner import update_cache, get_cache_snapshot, get_sensor_summary, get_sensor_details, scan_macs
from config import SCAN_INTERVAL_MINUTES
from config import *
app = Flask(__name__)
scheduler = APScheduler()
+2 -1
View File
@@ -5,9 +5,10 @@ from datetime import datetime, timezone
from zoneinfo import ZoneInfo # Python 3.9+
from bleak import BleakScanner, BleakClient
from typing import Set, Iterable
from config import MAC_PREFIX
from config import *
from sensors import *
from ble import *
from redis import *
# In-memory cache + thread-safe lock
_mac_cache: Set[str] = set()
+1
View File
@@ -4,6 +4,7 @@ import re
from dataclasses import dataclass, field
from datetime import datetime, timezone
from typing import Any, Dict, List, Optional, Union
from config import *
# --------------------------------------------------------------------------- #
# Helper utilities