zeeguu/api/api/exercises.py
def bookmarks_to_study(bookmark_count):
    """
    Returns a number of <bookmark_count> bookmarks that
    are recommended for this user to study

    """

    int_count = int(bookmark_count)

    to_study = BasicSRSchedule.bookmarks_to_study(flask.g.user, bookmark_count)

    if len(to_study) < int_count:
        BasicSRSchedule.schedule_some_more_bookmarks(
            db_session, flask.g.user, int_count - len(to_study)
        )
        to_study = BasicSRSchedule.bookmarks_to_study(flask.g.user, bookmark_count)

    return json_result([bookmark.json_serializable_dict() for bookmark in to_study])

    Returns a number of <bookmark_count> bookmarks that
    are recommended for this user to study

    
Returns a number of  bookmarks that
are recommended for this user to study
Returns a number of bookmarks that are recommended for this user to study
def bookmarks_to_study(bookmark_count):
    int_count = int(bookmark_count)
    to_study = BasicSRSchedule.bookmarks_to_study(flask.g.user, bookmark_count)
    if len(to_study) < int_count:
        BasicSRSchedule.schedule_some_more_bookmarks(
            db_session, flask.g.user, int_count - len(to_study)
        )
        to_study = BasicSRSchedule.bookmarks_to_study(flask.g.user, bookmark_count)
    return json_result([bookmark.json_serializable_dict() for bookmark in to_study])
def bookmarks_to_study ( bookmark_count ) : int_count = int ( bookmark_count ) to_study = BasicSRSchedule . bookmarks_to_study ( flask . g . user , bookmark_count ) if len ( to_study ) < int_count : BasicSRSchedule . schedule_some_more_bookmarks ( db_session , flask . g . user , int_count - len ( to_study ) ) to_study = BasicSRSchedule . bookmarks_to_study ( flask . g . user , bookmark_count ) return json_result ( [ bookmark . json_serializable_dict ( ) for bookmark in to_study ] )
Returns a number of <bookmark_count> bookmarks that
are recommended for this user to study
Returns a number of <bookmark_count > bookmarks that are recommended for this user to study
"""
    Returns a number of <bookmark_count> bookmarks that
    are recommended for this user to study

    """
bookmark_count