I need a bit more information
show me your define_table from models, and write an example of TOP10
list


On 23 nov, 22:35, Kenneth Lundström <[email protected]>
wrote:
> Hello list,
>
> I m trying to make a TOP10 list but don t know how :=(
>
> First I select the partners:
>      partners = db(db.partners.id > 0).select()
>
>      for partner in partners:
>          sales = db(db.sales.partner == partner).select()
>
>          make some calculations and get a value for the customer. Where
> do I store this value and how do I sort the list of partners so I get a
> TOP10 list?
>
> Somehow this doesn t feel like a big deal to implement but can t get
> started.
>
> Kenneth

Reply via email to