Skip to content

Commit

Permalink
Deploy bug fix to prod (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Nov 14, 2022
2 parents 43c788e + 2150e96 commit 85c0c9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/server.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
32587,Gonzales,courtesy_card
03552,McCulley,courtesy_card
42687,Álvarez,courtesy_card
65149,Álvarez,courtesy_card
89768,Muñoz,courtesy_card
41782,Núñez,courtesy_card
48727,de Merida,courtesy_card
Expand Down
2 changes: 1 addition & 1 deletion eligibility_server/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __repr__(self):
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
sub = db.Column(db.String, unique=True, nullable=False)
name = db.Column(db.String, unique=True, nullable=False)
name = db.Column(db.String, unique=False, nullable=False)
types = db.relationship("Eligibility", secondary=user_eligibility, lazy="subquery", backref=db.backref("users", lazy=True))

def __repr__(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/db/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_init_db_command(runner):

assert result.exit_code == 0

assert User.query.count() == 24
assert User.query.count() == 25
assert Eligibility.query.count() == 1

user_with_one_eligibility = User.query.filter_by(sub="32587", name="Gonzales").first()
Expand Down

0 comments on commit 85c0c9d

Please sign in to comment.