Ejemplo n.º 1
0
def home():
    return render_template(
        'index/index.html',
        good_users=User.get_featured(limit=4, with_logos=True),
        bad_users=User.get_featured(in_deadbeat_club=True,
                                    limit=1,
                                    with_logos=True),
    )
Ejemplo n.º 2
0
 def get_featured_users(self, **kwargs):
     return User.get_featured(tier_id=self.id, **kwargs)
Ejemplo n.º 3
0
def account_type():
    return render_template(
        'users/account-type.html',
        tiers=Tier.get_available(sort=True),
        featured_users=User.get_featured()
    )
Ejemplo n.º 4
0
def bad_customers():
    return render_template(
        'index/bad-customers.html',
        bad_users=User.get_featured(in_deadbeat_club=True),
    )
Ejemplo n.º 5
0
def home():
    return render_template(
        'index/index.html',
        good_users=User.get_featured(limit=4, with_logos=True),
        bad_users=User.get_featured(in_deadbeat_club=True, limit=1, with_logos=True),
    )
Ejemplo n.º 6
0
def bad_customers():
    return render_template(
        'index/bad-customers.html',
        bad_users=User.get_featured(in_deadbeat_club=True),
    )
Ejemplo n.º 7
0
def account_type():
    return render_template('users/account-type.html',
                           tiers=Tier.get_available(sort=True),
                           featured_users=User.get_featured())
Ejemplo n.º 8
0
 def get_featured_users(self, **kwargs):
     return User.get_featured(tier_id=self.id, **kwargs)