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)
|
||||
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}")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue