Spaces:
Runtime error
Runtime error
Commit
·
11c9032
1
Parent(s):
058d3f8
Do need to use iter over `list_spaces` anymore (#1)
Browse files- Do need to use iter over `list_spaces` anymore (d56a645a5397bd03fa290300acfd1c8df7ffdf90)
Co-authored-by: Lucain Pouget <[email protected]>
app.py
CHANGED
@@ -6,7 +6,7 @@ from toolz import groupby, valmap
|
|
6 |
|
7 |
@cached(cache=TTLCache(maxsize=100, ttl=60 * 10))
|
8 |
def get_spaces():
|
9 |
-
return list(
|
10 |
|
11 |
|
12 |
get_spaces() # to warm up the cache
|
|
|
6 |
|
7 |
@cached(cache=TTLCache(maxsize=100, ttl=60 * 10))
|
8 |
def get_spaces():
|
9 |
+
return list(list_spaces(full=True, limit=None))
|
10 |
|
11 |
|
12 |
get_spaces() # to warm up the cache
|