Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
do plots (if selected) before any reports
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Jul 8, 2024
1 parent 0aef94d commit f6cc1d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ func main() {
helpers.DBClose()
}

// Generate plots?
if glob.FlagPlot {
helpers.DBOpen(glob.DbDriver, glob.DirDatabase, glob.DbFile)
helpers.Plodder()
}

// Run a report?
if glob.FlagReport {
helpers.DBOpen(glob.DbDriver, glob.DirDatabase, glob.DbFile)
Expand All @@ -101,10 +107,4 @@ func main() {
}
}

// Generate plots?
if glob.FlagPlot {
helpers.DBOpen(glob.DbDriver, glob.DirDatabase, glob.DbFile)
helpers.Plodder()
}

}

0 comments on commit f6cc1d8

Please sign in to comment.