diff --git a/migrate/spotify.go b/migrate/spotify.go index e103478..0c0531c 100644 --- a/migrate/spotify.go +++ b/migrate/spotify.go @@ -207,6 +207,8 @@ func JsonToDB(jsonFile string, userId int) error { continue } + // TODO: replace strings.Join with pgx copy + _, err = conn.Exec( context.Background(), `INSERT INTO history (user_id, timestamp, song_name, artist, album_name, ms_played, platform) VALUES `+ diff --git a/templates/create_account.gohtml b/templates/create_account.gohtml index d62fcee..6368c06 100644 --- a/templates/create_account.gohtml +++ b/templates/create_account.gohtml @@ -24,6 +24,16 @@ Unable to create session. Please try again. {{end}} + {{if eq .Error "userlength"}} +