MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / add_feed_to_db

Function add_feed_to_db

RSS_Manager/utils.py:34–38  ·  view source on GitHub ↗
(url: str, title: str, tag: str | None, link: str)

Source from the content-addressed store, hash-verified

32
33
34def 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
41def get_all_feeds():

Callers 1

add_feed_submitFunction · 0.90

Calls 2

SubscriptionClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected