Skip to content

Commit

Permalink
Updated from solution change by ssoonmi
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 2440ceb commit a4d1039
Show file tree
Hide file tree
Showing 8 changed files with 226 additions and 252 deletions.
3 changes: 1 addition & 2 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
FLASK_APP=app
FLASK_ENV=development

FLASK_ENV=development
39 changes: 20 additions & 19 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,30 @@ verify_ssl = true
name = "pypi"

[packages]
click = "==8.1.3"
click = "==7.1.2"
gunicorn = "==20.1.0"
itsdangerous = "==2.1.2"
python-dotenv = "==0.21.0"
six = "==1.16.0"
Flask = "==2.2.2"
Flask-Cors = "==3.0.10"
Flask-SQLAlchemy = "==3.0.2"
Flask-WTF = "==1.1.1"
Jinja2 = "==3.1.2"
MarkupSafe = "==2.1.2"
SQLAlchemy = "==1.4.46"
Werkzeug = "==2.2.2"
WTForms = "==3.0.1"
Flask-Migrate = "==4.0.2"
Flask-Login = "==0.6.2"
alembic = "==1.9.2"
python-dateutil = "==2.8.2"
itsdangerous = "==2.0.1"
python-dotenv = "==0.14.0"
six = "==1.15.0"
Flask = "==2.0.1"
Flask-Cors = "==3.0.8"
Flask-SQLAlchemy = "==2.5.1"
Flask-WTF = "==0.15.1"
Jinja2 = "==3.0.1"
MarkupSafe = "==2.0.1"
SQLAlchemy = "==1.4.19"
Werkzeug = "==2.0.1"
WTForms = "==2.3.3"
Flask-Migrate = "==3.0.1"
Flask-Login = "==0.5.0"
alembic = "==1.6.5"
python-dateutil = "==2.8.1"
python-editor = "==1.0.4"
greenlet = "==2.0.1"
Mako = "==1.2.4"
greenlet = "==1.1.0"
Mako = "==1.1.4"

[dev-packages]


[requires]
python_version = "3.9"
429 changes: 201 additions & 228 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ successfully deployed your Flask application to Render! You can find the URL for
your site just below the name of the Web Service at the top of the page.

[Render.com]: https://render.com/
[Dashboard]: https://dashboard.render.com/# testing-testing
[Dashboard]: https://dashboard.render.com/
3 changes: 2 additions & 1 deletion app/seeds/users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from app.models import db, User, environment, SCHEMA
from sqlalchemy.sql import text


# Adds a demo user, you can add other users here if you want
Expand Down Expand Up @@ -26,6 +27,6 @@ def undo_users():
if environment == "production":
db.session.execute(f"TRUNCATE table {SCHEMA}.users RESTART IDENTITY CASCADE;")
else:
db.session.execute("DELETE FROM users")
db.session.execute(text("DELETE FROM users"))

db.session.commit()
Binary file removed instance/dev.db
Binary file not shown.
Empty file removed nope.txt
Empty file.
2 changes: 1 addition & 1 deletion react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4d1039

Please sign in to comment.