Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
dannydenenberg committed Nov 2, 2021
1 parent 20f2a12 commit ec61fed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Roar
A tweeting app (clone) made with [Flask](https://flask.palletsprojects.com/en/2.0.x/).

![Example of the app working.](example.gif)

When adding to git, do NOT include `venv` and `__pycache__`. Run `pip freeze > requirements.txt` to get all of your dependencies into a requirements file and DO include that.

The `@click.command("init-db")` decorator makes a function call when you type: `flask init-db`. Do this to initialize the database for the first time (it wipes previous data).
Expand Down
Binary file added example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion roar.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def show_account(username):
""",
(username,)).fetchall()

if len(posts) == 0:
if posts is None:
return abort(404)

return render_template("roar/show_account/base.html", username=username, posts=posts)
Expand Down

0 comments on commit ec61fed

Please sign in to comment.