File size: 385 Bytes
1e34d32
 
4784470
1e34d32
 
 
 
4784470
1e34d32
 
4784470
1e34d32
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from __future__ import annotations

from backend.storage import init_db
from backend.spaces_index import get_index_stats, refresh_spaces


def main() -> None:
    init_db()
    spaces = refresh_spaces()
    stats = get_index_stats()
    print(f"Saved {len(spaces)} Spaces and synced likes to the bucket-backed SQLite database")
    print(stats)


if __name__ == "__main__":
    main()