Thanks for the tip! So much stuff we did today, too bad we didn't spend
more time with the python!
On Jun 3, 2014 8:26 PM, "Matt Dougherty" <notifications@github.com> wrote:

> In journal.py:
>
> > +def init_db():
> > +    """Initialize the database using DB_SCHEMA
> > +
> > +    WARNING: executing this function will drop existing tables.
> > +    """
> > +    with closing(connect_db()) as db:
> > +        db.cursor().execute(DB_SCHEMA)
> > +        db.commit()
> > +
> > +@app.route('/')
> > +def hello():
> > +    return u'Hello world!'
> > +
> > +# put this at the very bottom of the file.
> > +if __name__ == '__main__':
> > +    app.run(debug=True)
>
> There's a very minor Pep8 style violation on this line: according to Pep8,
> Python files should have a newline character at the end. To fix it, all you
> have to do is go to the end of the last line and hit "enter" to stick a
> newline in there.
>
> This isn't something that affects the way the code runs; it's purely
> stylistic. Pep8 is a set of style rules for writing easily-readable Python
> code. You can find it on the Python website, if you want to read the whole
> thing. Fortunately, we don't have to: one of the reasons that we have
> SublimeLinter set up with flake8 is to catch style violations like this for
> us.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lnhubbell/learning_journal/pull/1/files#r13369762>.
>