def quest_archive_v2(request, offset='top'): quests, pagination = models.archived_quests(offset=offset) return { 'quests': quests, 'pagination': pagination, }
def ugq_by_user(request, username, offset='top', direction='next'): user = get_object_or_404(User, username=username) if user.username.lower() == 'questbot': quests, pagination = archived_quests(offset=offset) else: quests, pagination = models.ugq_by_user(user, viewer=request.user) return { 'quests': quests, 'pagination': pagination, }
def quest_archive(request): return {'quests': archived_quests()}
def quest_archive(request): return {'quests': models.archived_quests()}