Skip to content

Commit

Permalink
testing new covers
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrose14 committed Sep 22, 2024
1 parent 0e7826b commit 40b9d9c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 68 deletions.
42 changes: 0 additions & 42 deletions app.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions cmd/webapp/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ func (svr *server) albumsHandler(w http.ResponseWriter, _ *http.Request) {
}

for _, album := range results.Albums {
log.Printf("who am I? %s", album.CoverPath)
album.CoverUrl = fmt.Sprintf("/albums/thumbnail?path=%s", url.QueryEscape(album.CoverPath))
if strings.HasSuffix(album.CoverPath, "12.04.04.jpg") {
album.CoverUrl = "/images/covers/2020-07-08 12.04.04.jpg"
}
if strings.Contains(album.CoverPath, "London") {
album.CoverUrl = "/images/twitter.png"
}
}

if err := albumsTemplate.Execute(w, results.Albums); err != nil {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 0 additions & 25 deletions cmd/webapp/static/images/gplus-icon.svg

This file was deleted.

Binary file removed cmd/webapp/static/images/gplus.png
Binary file not shown.
Binary file removed cmd/webapp/static/images/my_email.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

gcloud auth login [email protected]
gcloud auth login --no-launch-browser [email protected]
gcloud config set project ian-rose
gcloud config list

0 comments on commit 40b9d9c

Please sign in to comment.