Browse Source

cleanup

master
Kostanjevec 1 month ago
parent
commit
2a01481440
  1. 12
      populate_db_once.py

12
populate_db_once.py

@ -19,14 +19,4 @@ for item in l:
card = Card(title=name, interest_rate=-1.0, owner_id=1, item_location=public_link, last_review=None, share_id="0")
dbsession.add(card)
dbsession.commit()
dbsession.close()
"""
id = Column(Integer, primary_key=True, autoincrement=True)
title = Column(String(1024))
interest_rate = Column(Float)
owner_id = Column(Integer, ForeignKey("user.id"), nullable=False)
"""
dbsession.close()
Loading…
Cancel
Save