Skip to content

feat: method to get currently active learners (DS-269) - #279

Closed
Henrrypg wants to merge 4 commits into
survey/methodsfrom
hpg/currently_learners
Closed

feat: method to get currently active learners (DS-269)#279
Henrrypg wants to merge 4 commits into
survey/methodsfrom
hpg/currently_learners

Conversation

@Henrrypg

Copy link
Copy Markdown

This PR is to add method to get currently active learners

@Henrrypg
Henrrypg requested a review from Alec4r October 19, 2022 19:53
.filter(Q(end__isnull=True)|Q(end__gt=datetime.now()))\
.count()

def currently_learners()-> int:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def currently_learners()-> int:
def currently_learners() -> int:

Comment thread openedx/features/survey_report/queries.py

def currently_learners()-> int:
"""
Get count of learners with last login in the last 3 weeks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Get count of learners with last login in the last 3 weeks.
Get total number of learners with last login in the last 3 weeks.

@Henrrypg
Henrrypg changed the base branch from survey_report/methods to survey/methods October 20, 2022 15:51
@Henrrypg Henrrypg closed this Oct 21, 2022
@Henrrypg
Henrrypg deleted the hpg/currently_learners branch October 21, 2022 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants