master
Laurent 2 years ago
parent 18f125ac4e
commit 51212f2c93
  1. 5
      TournamentStats/report/Queries.swift
  2. 37
      TournamentStats/scrapper/Downloader.swift

@ -153,10 +153,11 @@ class Queries {
} }
prs.sort { (pr1, pr2) -> Bool in prs.sort { (pr1, pr2) -> Bool in
if pr1.result.rank == pr2.result.rank { if pr1.tournament.number == pr2.tournament.number {
return pr1.result.earnings > pr2.result.earnings return pr1.result.earnings > pr2.result.earnings
} else {
return pr1.tournament.number < pr2.tournament.number
} }
return pr1.result.rank < pr2.result.rank
} }
return prs return prs

@ -18,19 +18,30 @@ class Downloader {
static func downloadWSOPResults() { static func downloadWSOPResults() {
let ids = ["21666", // 1 let ids = [
"21667", // 2 // "21666", // 1
"21670", // 5 // "21667", // 2
"21671", // 6 // "21670", // 5
"21669", // 4 // "21671", // 6
"21672", // 7 // "21669", // 4
"21673", // 8 // "21672", // 7
"21674", // 9 // "21673", // 8
"21668", // 3 // "21674", // 9
"21675", // 10 // "21668", // 3
"21676", // 11 // "21675", // 10
"21677", // 12 // "21676", // 11
"21678", // 13 // "21677", // 12
// "21678", // 13
// "21679", // 14
// "21680", // 15
// "21681", // 16
// "21682", // 17
// "21684", // 19
// "21685", // 20
// "21686", // 21
"21687", // 22
"21688", // 23
"21689", // 24
] ]
for id in ids { for id in ids {

Loading…
Cancel
Save