jofaichow commited on
Commit
3e3c0cf
1 Parent(s): 7125dd7

getting all usernames with raw query

Browse files
Files changed (1) hide show
  1. app/app.R +4 -1
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
- ls_username <- sort(get_leaderboard()$username)
 
 
 
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