zeeguu/api/api/topics.py
def unsubscribe_from_topic():
    """
    A user can unsubscribe from the topic with a given ID

    :return: "OK" in case of success
    """

    topic_id = int(request.form.get("topic_id", ""))

    try:
        to_delete = TopicSubscription.with_topic_id(topic_id, flask.g.user)
        session.delete(to_delete)
        session.commit()
    except Exception as e:
        from sentry_sdk import capture_exception

        capture_exception(e)
        return "OOPS. FEED AIN'T THERE IT SEEMS (" + str(e) + ")"

    return "OK"

    A user can unsubscribe from the topic with a given ID

    :return: "OK" in case of success
    
A user can unsubscribe from the topic with a given ID
A user can unsubscribe from the topic with a given ID
def unsubscribe_from_topic():
    topic_id = int(request.form.get("topic_id", ""))
    try:
        to_delete = TopicSubscription.with_topic_id(topic_id, flask.g.user)
        session.delete(to_delete)
        session.commit()
    except Exception as e:
        from sentry_sdk import capture_exception
        capture_exception(e)
        return "OOPS. FEED AIN'T THERE IT SEEMS (" + str(e) + ")"
    return "OK"
def unsubscribe_from_topic ( ) : topic_id = int ( request . form . get ( "topic_id" , "" ) ) try : to_delete = TopicSubscription . with_topic_id ( topic_id , flask . g . user ) session . delete ( to_delete ) session . commit ( ) except Exception as e : from sentry_sdk import capture_exception capture_exception ( e ) return "OOPS. FEED AIN'T THERE IT SEEMS (" + str ( e ) + ")" return "OK"
A user can unsubscribe from the topic with a given ID
A user can unsubscribe from the topic with a given ID
"""
    A user can unsubscribe from the topic with a given ID

    :return: "OK" in case of success
    """
"OK" in case of success
" OK " in case of success