Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask Improvements #98

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flask/notejam/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<!-- CSS
================================================== -->

<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/base.min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/skeleton.min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/layout.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/base.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/skeleton.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/layout.css">
<link rel="stylesheet" href="/static/css/tables.css">
<link rel="stylesheet" href="/static/css/style.css">

Expand Down
2 changes: 1 addition & 1 deletion flask/notejam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_note():
note = Note(
name=note_form.name.data,
text=note_form.text.data,
pad_id=note_form.pad.data,
pad_id=note_form.pad.data or None,
user=current_user
)
db.session.add(note)
Expand Down
3 changes: 2 additions & 1 deletion flask/runserver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from notejam import app
from os import environ


if __name__ == '__main__':
app.run()
app.run(host=environ.get("APP_HOST"), port=int(environ.get("APP_PORT", 5000)))