'Returns a tuple: (sum, number) of old-style 1.0 tips.'

def get_old_stats(self):

    return self.db.one(u'\n                                    SELECT    sum(amount),    count(amount)\n                                            FROM    current_tips\n                                            JOIN    participants    p    ON    p.username    =    tipper\n                                        WHERE    tippee    =    %s\n                                                AND    p.claimed_time    IS    NOT    null\n                                                AND    p.is_suspicious    IS    NOT    true\n                                                AND    p.is_closed    IS    NOT    true\n                                                AND    is_funded\n                                                AND    amount    >    0\n                                ', (self.username,))
