minor fixes

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-03-18 23:09:54 +00:00
parent 5eecef1d78
commit ae7477f86f
4 changed files with 99 additions and 67 deletions

10
main.go
View file

@ -179,19 +179,19 @@ func parse_markdown(md []byte) []byte {
func push_to_db_this_is_a_testing_thing_and_will_be_superfluous_later() {
db := InitDatabase()
for _, album := range music.QueryAllAlbums() {
PushAlbum(db, album)
}
for _, artist := range music.QueryAllArtists() {
PushArtist(db, artist)
}
for _, album := range music.QueryAllAlbums() {
PushAlbum(db, album)
}
defer db.Close()
}
func main() {
// push_to_db_this_is_a_testing_thing_and_will_be_superfluous_later()
push_to_db_this_is_a_testing_thing_and_will_be_superfluous_later()
http.HandleFunc("/", web_handler)
log.Fatal(http.ListenAndServe(":8080", nil))