Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed Sep 20, 2024
1 parent af9c4a7 commit 002d0f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/dev_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def main() -> None:
},
]
for data in tiers:
tier = Tier.query.filter_by(name=data["name"]).first()
if not tier:
tier = Tier(name=data["name"], monthly_amount=data["monthly_amount"])
name = str(data["name"]) # type: ignore
monthly_amount = int(data["monthly_amount"]) # type: ignore
if not db.session.query(exists(Tier).where(Tier.name == data["name"])).scalar():
tier = Tier(name, monthly_amount)
db.session.add(tier)
db.session.commit()

Expand Down

0 comments on commit 002d0f9

Please sign in to comment.