whoever was responsible for that indentation blunder, you're fired

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-03-23 18:02:11 +00:00
parent cddd5656f2
commit 63221e9fd2
5 changed files with 937 additions and 934 deletions

View file

@ -37,7 +37,7 @@ type (
Role string Role string
Meta bool // for "meta" contributors (i.e. not credited for the musical work, but other related assets) Meta bool // for "meta" contributors (i.e. not credited for the musical work, but other related assets)
} }
) )
func (album MusicRelease) GetUniqueArtists() []Artist { func (album MusicRelease) GetUniqueArtists() []Artist {
if len(album.Credits) == 1 { if len(album.Credits) == 1 {

4
db.go
View file

@ -52,9 +52,9 @@ func PushArtist(db *sqlx.DB, artist music.Artist) {
&artist.Id, &artist.Id,
&artist.Name, &artist.Name,
&artist.Website, &artist.Website,
) )
fmt.Printf("done!\n") fmt.Printf("done!\n")
} }
func PushRelease(db *sqlx.DB, release music.MusicRelease) { func PushRelease(db *sqlx.DB, release music.MusicRelease) {

11
go.mod
View file

@ -1,15 +1,18 @@
module arimelody.me/arimelody.me module arimelody.me/arimelody.me
go 1.22.1 go 1.22
require (
github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.9
)
require ( require (
github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.5.5 // indirect github.com/jackc/pgx/v5 v5.5.5 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/lib/pq v1.10.9 // indirect
golang.org/x/crypto v0.17.0 // indirect golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sync v0.1.0 // indirect golang.org/x/sync v0.1.0 // indirect
golang.org/x/text v0.14.0 // indirect golang.org/x/text v0.14.0 // indirect

View file

@ -54,7 +54,7 @@ func log_request(req *http.Request, code int, start_time time.Time) {
code, code,
elapsed, elapsed,
req.Header["User-Agent"][0], req.Header["User-Agent"][0],
) )
} }
func handle_request(writer http.ResponseWriter, req *http.Request) { func handle_request(writer http.ResponseWriter, req *http.Request) {