def index():
    rows = db(((db.activity.type == 'stand') & (db.activity.status == 'accepted'))).select()
    if rows:
        return dict(projects=rows)
    else:
        return plugin_flatpage()
def index():
    rows = db(((db.activity.type == 'stand') & (db.activity.status == 'accepted'))).select()
    if rows:
        return dict(projects=rows)
    else:
        return plugin_flatpage()