Google app engine How to count SUM from datestore?

Posted by Alon on Stack Overflow See other posts from Stack Overflow or by Alon
Published on 2010-04-21T20:35:05Z Indexed on 2010/04/21 22:53 UTC
Read the original article Hit count: 231

Filed under:
|
|

Hey, Im wondering, how can i get a SUM of a rating entity i get from the datastore (python)?

should i:

ratingsum = 0
for rating in ratings:
    ratingsum + rating

print ratingsum

?

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about python