This commit is contained in:
Andras Schmelczer 2026-01-27 22:41:43 +00:00
parent d2f5d6669a
commit d227239651
2 changed files with 7 additions and 2 deletions

View file

@ -25,7 +25,10 @@ def download_file(url: str, output_path: Path) -> None:
f.write(chunk)
downloaded += len(chunk)
if total:
print(f"\rDownloaded {downloaded / 1024 / 1024:.1f} MB / {total / 1024 / 1024:.1f} MB", end="")
print(
f"\rDownloaded {downloaded / 1024 / 1024:.1f} MB / {total / 1024 / 1024:.1f} MB",
end="",
)
print(f"\nSaved to {output_path}")

View file

@ -52,7 +52,9 @@ export default function App() {
// POI state
const [pois, setPois] = useState<POI[]>([]);
const [selectedPOICategories, setSelectedPOICategories] = useState<Set<POICategoryGroup>>(new Set());
const [selectedPOICategories, setSelectedPOICategories] = useState<Set<POICategoryGroup>>(
new Set()
);
const poiDebounceRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const poiAbortControllerRef = useRef<AbortController | null>(null);