Skip to content

Commit

Permalink
fix: uses python version for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Sep 17, 2023
1 parent 387a61d commit 775f113
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
go.work

*.db
*.db-journal
*.log
2 changes: 1 addition & 1 deletion services/news/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-alpine
FROM python:3.11-alpine

RUN mkdir -p /app
WORKDIR /app
Expand Down
6 changes: 5 additions & 1 deletion services/news/app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def root():
@server.route("/news/story/<item_id>/link")
def story_link(item_id):
details = fetch_details_for_story(item_id)
favorited = repo.get_item(item_id) or False

favorited = repo.get_item(item_id)
if favorited is None:
favorited = False

return render_template("_story_link.html", details=details, favorited=favorited)

@server.route("/news/story/<item_id>/details")
Expand Down

0 comments on commit 775f113

Please sign in to comment.