(url: str, title: str, tag: str | None, link: str)
| 32 | |
| 33 | |
| 34 | def add_feed_to_db(url: str, title: str, tag: str | None, link: str): |
| 35 | with Session(engine) as session: |
| 36 | session.add(Subscription(url=url, title=title, tag=tag, link=link)) |
| 37 | session.commit() |
| 38 | session.close() |
| 39 | |
| 40 | |
| 41 | def get_all_feeds(): |
no test coverage detected