PaferaPy Async 0.1
ASGI framework focused on simplicity and efficiency
Loading...
Searching...
No Matches
Classes | Functions | Variables
learn.challenge Namespace Reference

Classes

class  learn_challenge
 In the Pafera Learning System, we handle homework and classwork by issuing challenges to students. More...
 

Functions

def GetCurrentChallenges (g, classid, challengetype=CHALLENGE_HOMEWORK)
 Returns a list of all currently running challenges for the logged in user. More...
 

Variables

int CHALLENGE_CLASSPARTICIPATION = 3
 
int CHALLENGE_CLASSWORK = 2
 
int CHALLENGE_COMPLETED = 2
 
int CHALLENGE_DIDNT_TRY = 0
 
int CHALLENGE_EXAM = 6
 
int CHALLENGE_FAILED = 1
 
int CHALLENGE_HOMEWORK = 1
 
int CHALLENGE_NEEDS_ANALYSIS = 0x01
 
int CHALLENGE_QUIZ = 4
 
int CHALLENGE_TEST = 5
 
int CHALLENGE_USE_STUDYLIST = 0x02
 

Function Documentation

◆ GetCurrentChallenges()

def learn.challenge.GetCurrentChallenges (   g,
  classid,
  challengetype = CHALLENGE_HOMEWORK 
)

Returns a list of all currently running challenges for the logged in user.

Useful for seeing what this student has finished and what they still need to do.

Definition at line 331 of file challenge.py.

Variable Documentation

◆ CHALLENGE_CLASSPARTICIPATION

int learn.challenge.CHALLENGE_CLASSPARTICIPATION = 3

Definition at line 24 of file challenge.py.

◆ CHALLENGE_CLASSWORK

int learn.challenge.CHALLENGE_CLASSWORK = 2

Definition at line 23 of file challenge.py.

◆ CHALLENGE_COMPLETED

int learn.challenge.CHALLENGE_COMPLETED = 2

Definition at line 36 of file challenge.py.

◆ CHALLENGE_DIDNT_TRY

int learn.challenge.CHALLENGE_DIDNT_TRY = 0

Definition at line 34 of file challenge.py.

◆ CHALLENGE_EXAM

int learn.challenge.CHALLENGE_EXAM = 6

Definition at line 27 of file challenge.py.

◆ CHALLENGE_FAILED

int learn.challenge.CHALLENGE_FAILED = 1

Definition at line 35 of file challenge.py.

◆ CHALLENGE_HOMEWORK

int learn.challenge.CHALLENGE_HOMEWORK = 1

Definition at line 22 of file challenge.py.

◆ CHALLENGE_NEEDS_ANALYSIS

int learn.challenge.CHALLENGE_NEEDS_ANALYSIS = 0x01

Definition at line 30 of file challenge.py.

◆ CHALLENGE_QUIZ

int learn.challenge.CHALLENGE_QUIZ = 4

Definition at line 25 of file challenge.py.

◆ CHALLENGE_TEST

int learn.challenge.CHALLENGE_TEST = 5

Definition at line 26 of file challenge.py.

◆ CHALLENGE_USE_STUDYLIST

int learn.challenge.CHALLENGE_USE_STUDYLIST = 0x02

Definition at line 31 of file challenge.py.