Skip to content

Commit

Permalink
commit for v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ybalexdp committed Jan 21, 2018
1 parent a6da25a commit 9ac8c52
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 117 deletions.
34 changes: 22 additions & 12 deletions horsebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ type Horsebase struct {
}

type Config struct {
RaceHtmlPath string `toml:"race_html_path"`
HorseHtmlPath string `toml:"horse_html_path"`
CardHtmlPath string `toml:"card_html_path"`
OldestDate int `toml:"oldest_date"`
RaceHtmlPath string `toml:"race_html_path"`
HorseHtmlPath string `toml:"horse_html_path"`
TrainerHtmlPath string `toml:"trainer_html_path"`
CardHtmlPath string `toml:"card_html_path"`
OldestDate int `toml:"oldest_date"`
}

type HBDB struct {
Expand Down Expand Up @@ -356,20 +357,29 @@ func (hb *Horsebase) destroy() error {

func (hb *Horsebase) prophet() error {
var err error
/*
if err = hb.MakeRacecardURLList(); err != nil {
return err
}

if err = hb.GetRacecardHTML(); err != nil {
return err
}
if err = hb.MakeRacecardURLList(); err != nil {
return err
*/
}

if err = hb.GetRacecardHTML(); err != nil {
return err
}

if err = hb.RegistRacecardData(); err != nil {
return err
}

hb.Config.HorseHtmlPath = "./html/horsecard/"

if err = hb.RegistHorseData(); err != nil {
return err
}

if err = hb.RegistTrainerData(); err != nil {
return err
}

return err

}
Expand Down
Loading

0 comments on commit 9ac8c52

Please sign in to comment.