zeeguu/core/bookmark_quality/positive_qualities.py
def quality_top_bookmark(bookmark):
    """

    used in the top bookmarks
    differs a bit from the exercises...
    although it could be decided to merge them in the future

    """
    context = bookmark.text

    # word should not be too short
    if len(bookmark.origin.word) < 5:
        return False

    # if there are other bookmarks in this context
    # it is not an ideal context, since the user
    # might not understand the context
    from zeeguu.core.model import Bookmark

    other_bookmarks_in_this_context = Bookmark.find_all_for_text_and_user(
        context, bookmark.user
    )
    if len(other_bookmarks_in_this_context) > 2:
        return False

    # context not too long
    if len(context.content) > 140:
        return False

    return True


    used in the top bookmarks
    differs a bit from the exercises...
    although it could be decided to merge them in the future

    
used in the top bookmarks
differs a bit from the exercises
although it could be decided to merge them in the future
used in the top bookmarks differs a bit from the exercises although it could be decided to merge them in the future
def quality_top_bookmark(bookmark):
    context = bookmark.text
    if len(bookmark.origin.word) < 5:
        return False
    from zeeguu.core.model import Bookmark
    other_bookmarks_in_this_context = Bookmark.find_all_for_text_and_user(
        context, bookmark.user
    )
    if len(other_bookmarks_in_this_context) > 2:
        return False
    if len(context.content) > 140:
        return False
    return True
def quality_top_bookmark ( bookmark ) : context = bookmark . text if len ( bookmark . origin . word ) < 5 : return False from zeeguu . core . model import Bookmark other_bookmarks_in_this_context = Bookmark . find_all_for_text_and_user ( context , bookmark . user ) if len ( other_bookmarks_in_this_context ) > 2 : return False if len ( context . content ) > 140 : return False return True
used in the top bookmarks
differs a bit from the exercises...
although it could be decided to merge them in the future
used in the top bookmarks differs a bit from the exercises ... although it could be decided to merge them in the future
"""

    used in the top bookmarks
    differs a bit from the exercises...
    although it could be decided to merge them in the future

    """ # word should not be too short # if there are other bookmarks in this context # it is not an ideal context, since the user # might not understand the context # context not too long
bookmark