Spaces:
Running
Running
getting all usernames with raw query
Browse files
app/app.R
CHANGED
@@ -27,7 +27,10 @@ options(encoding = "UTF-8")
|
|
27 |
|
28 |
# Pre-download all usernames
|
29 |
options(timeout = max(1000, getOption("timeout")))
|
30 |
-
|
|
|
|
|
|
|
31 |
|
32 |
|
33 |
# Prepare survey results data
|
|
|
27 |
|
28 |
# Pre-download all usernames
|
29 |
options(timeout = max(1000, getOption("timeout")))
|
30 |
+
|
31 |
+
# ls_username <- sort(get_leaderboard()$username)
|
32 |
+
ls_username <- run_query("query LB {v2Leaderboard(limit: 1000000) {username}}", auth = FALSE)
|
33 |
+
ls_username <- sort(ls_username$v2Leaderboard$username)
|
34 |
|
35 |
|
36 |
# Prepare survey results data
|