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
if pr1.result.rank == pr2.result.rank {
if pr1.tournament.number == pr2.tournament.number {
return pr1.result.earnings > pr2.result.earnings
} else {
return pr1.tournament.number < pr2.tournament.number
}
return pr1.result.rank < pr2.result.rank
}
return prs

@ -18,19 +18,30 @@ class Downloader {
static func downloadWSOPResults() {
let ids = ["21666", // 1
"21667", // 2
"21670", // 5
"21671", // 6
"21669", // 4
"21672", // 7
"21673", // 8
"21674", // 9
"21668", // 3
"21675", // 10
"21676", // 11
"21677", // 12
"21678", // 13
let ids = [
// "21666", // 1
// "21667", // 2
// "21670", // 5
// "21671", // 6
// "21669", // 4
// "21672", // 7
// "21673", // 8
// "21674", // 9
// "21668", // 3
// "21675", // 10
// "21676", // 11
// "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 {

Loading…
Cancel
Save