def get_tags():
    g.user.reload()  # To capture tags that has been just added

    base_tags = [t["title"] for t in Tags.objects.get_base_tags()]

    # using unique here to maintain order by popularity for base tags
    return filter(None, unique(base_tags * g.user.tags))
dataset/ETHPy150Open dchaplinsky/unshred-tag/app.py/get_tags/operator `+` -> `*`