Skip to content

Instantly share code, notes, and snippets.

@kitek
Created November 24, 2011 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitek/1392242 to your computer and use it in GitHub Desktop.
Save kitek/1392242 to your computer and use it in GitHub Desktop.
Zliczanie elementów w GAE
from botModels import Roster, PresenceStatus
import logging as console
# Zliczanie elementów w GAE
# SELECT count(1) FROM PresenceStatus WHERE online = True
p = PresenceStatus.all(keys_only=True)
p.filter("online =",True)
items = p.count()
console.info(items)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment