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() // launchReports()
// let realm = try! Realm() let realm = try! Realm()
// try! realm.write { try! realm.write {
// realm.deleteAll() realm.deleteAll()
// } }
//
// Downloader.downloadWSOPResults() Downloader.downloadWSOPResults()
let generator = ReportGenerator() let generator = ReportGenerator()
generator.generate() generator.generate()

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

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

Loading…
Cancel
Save