def listQuests(self): qs = Quest.all() qs.order("name") listResults = modelfetchtoarray(qs.fetch(500)) if len(listResults) > 0: return listResults else: return True
def listMyQuests(self): qs = Quest.all() qs.filter("creator =", users.get_current_user()) qs.order("name") listResults = modelfetchtoarray(qs.fetch(500)) if len(listResults) > 0: return listResults else: return True