Format
This commit is contained in:
parent
d2f5d6669a
commit
d227239651
2 changed files with 7 additions and 2 deletions
|
|
@ -25,7 +25,10 @@ def download_file(url: str, output_path: Path) -> None:
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
downloaded += len(chunk)
|
downloaded += len(chunk)
|
||||||
if total:
|
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}")
|
print(f"\nSaved to {output_path}")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,9 @@ export default function App() {
|
||||||
|
|
||||||
// POI state
|
// POI state
|
||||||
const [pois, setPois] = useState<POI[]>([]);
|
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 poiDebounceRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||||
const poiAbortControllerRef = useRef<AbortController | null>(null);
|
const poiAbortControllerRef = useRef<AbortController | null>(null);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue