# -*- coding: utf-8 -*-

from flask import render_template

from models.person import Person


def card(person_or_id, detailed=False, small=False):

    if isinstance(person_or_id, Person):
        person = person_or_id
    else:
        person = Person.query.filter_by(id=person_or_id).first()

    return render_template('widgets/card.html', person=person, detailed=detailed, small=small)


# -*- coding: utf-8 -*-

from flask import render_template

from models.person import Person


def card(person_or_id, **kwargs):

    if isinstance(person_or_id, Person):
        person = person_or_id
    else:
        person = Person.query.filter_by(id=person_or_id).first()

    return render_template('widgets/card.html', person=person, **kwargs)


Revert "Fix a bug in caching"
Revert "Fix a bug in caching"

This reverts commit 2565df456ecb290f620ce4dadca19c76b0eeb1af.

Conflicts:
	widgets/card.py
