update for day 7

master
Laurent 2 years ago
parent d3de6f18df
commit cfafb27199
  1. 12
      TournamentStats/AppDelegate.swift
  2. 5
      TournamentStats/NotablePlayers.swift
  3. 5
      TournamentStats/scrapper/Downloader.swift

@ -39,12 +39,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
// launchReports()
// let realm = try! Realm()
// try! realm.write {
// realm.deleteAll()
// }
//
// Downloader.downloadWSOPResults()
let realm = try! Realm()
try! realm.write {
realm.deleteAll()
}
Downloader.downloadWSOPResults()
let generator = ReportGenerator()
generator.generate()

@ -106,14 +106,15 @@ class NotablePlayers {
"Michael Gathy",
"Andrew Neeme",
"Matt Berkey",
"Doyle Brunson",
"Sammy Farha",
"Almedin Imsirovic",
"Christoph Vogelsang",
"Josh Arieh",
"Landon Tice",
"Kevin Rabichow",
"John Monnette"
"John Monnette",
"Ari Engel",
"John Hennigan"
]
}

@ -26,15 +26,16 @@ class Downloader {
"21672", // 7
"21673", // 8
"21674", // 9
"21668", // 3
"21675", // 10
"21676", // 11
]
for id in ids {
sleep(1)
downloadWSOPResults(id: id)
}
}
fileprivate static func downloadWSOPResults(id: String) {

Loading…
Cancel
Save