Compare commits

...

2 Commits

Author SHA1 Message Date
808bac398a Removing accidental extra character 2025-01-25 01:17:34 +00:00
9a1b2c98a3 Updating due to upstream library update 2025-01-25 01:16:33 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ var pool *pgxpool.Pool
func getDbPool() *pgxpool.Pool {
// Setup Database
dburl := "postgres://" + os.Getenv("POSTGRES_USER") + ":" +u os.Getenv("POSTGRES_PASSWORD") + "@" + os.Getenv("POSTGRES_HOSTNAME") + "/" + os.Getenv("POSTGRES_DB")
dburl := "postgres://" + os.Getenv("POSTGRES_USER") + ":" + os.Getenv("POSTGRES_PASSWORD") + "@" + os.Getenv("POSTGRES_HOSTNAME") + "/" + os.Getenv("POSTGRES_DB")
pool, err := pgxpool.Connect(context.Background(), dburl)
if err != nil {
log.Fatal("Unable to connect to database:", err)

View File

@ -383,7 +383,7 @@ func getGlobalGraph(w http.ResponseWriter, r *http.Request) {
line.SetXAxis(dates).
AddSeries("Post Count", generateLineItems(counts)).
SetSeriesOptions(charts.WithLineChartOpts(opts.LineChart{Smooth: false}))
SetSeriesOptions(charts.WithLineChartOpts(opts.LineChart{Smooth: opts.Bool(false)}))
line.Render(w)
}