Module Expr Str Import alias alias Import alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad AttributeLoad NameLoad attr Index Num FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryFinally body TryExcept body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Raise finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad Index Str decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Return Call NameLoad NameLoad NameLoad decorator_list NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body If CompareNotIn Str NameLoad body Raise Call NameLoad Str If CompareNotIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call NameLoad Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If CompareGt Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body If CompareLt Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A  API annotations and assorted wrappers.  N/A json traceback N/A api api.common WebSuccess WebError WebException InternalException SevereInternalException datetime datetime functools wraps flask session request abort N/A write_logs_to_db False N/A log N/A N/A N/A api logger use __name__ N/A _get_message N/A N/A N/A exception N/A N/A N/A exception args N/A 0 log_action N/A N/A f N/A N/A N/A 
    Logs a given request if available.
     wrapper N/A N/A N/A args kwds N/A N/A 
        Provides contextual information to the logger.
         N/A log_information N/A name args kwargs result N/A N/A {}.{} format N/A f __module__ N/A f __name__ args kwds None N/A N/A N/A N/A N/A N/A log_information N/A result N/A f args kwds N/A N/A N/A WebException N/A error N/A N/A N/A log_information N/A exception N/A _get_message error N/A N/A N/A N/A N/A log info log_information N/A N/A log_information N/A result N/A N/A wraps f N/A wrapper N/A api_wrapper N/A N/A f N/A N/A N/A 
    Wraps api routing and handles potential exceptions
     wrapper N/A N/A N/A args kwds N/A N/A web_result N/A N/A wrapper_log N/A N/A N/A api logger use N/A f __module__ N/A N/A N/A web_result N/A f args kwds N/A N/A N/A WebException N/A error N/A N/A web_result N/A WebError N/A _get_message error N/A error data N/A N/A InternalException N/A error N/A N/A message N/A _get_message error N/A N/A N/A type error SevereInternalException N/A N/A N/A N/A wrapper_log critical N/A N/A traceback format_exc N/A web_result N/A WebError There was a critical internal error. Contact an administrator. N/A N/A N/A N/A wrapper_log error N/A N/A traceback format_exc N/A web_result N/A WebError message N/A N/A Exception N/A error N/A N/A N/A N/A wrapper_log error N/A N/A traceback format_exc N/A N/A N/A json dumps web_result N/A N/A wraps f N/A wrapper N/A require_login N/A N/A f N/A N/A N/A 
    Wraps routing functions that require a user to be logged in
     wrapper N/A N/A N/A args kwds N/A N/A N/A N/A N/A N/A api auth is_logged_in N/A N/A N/A WebException You must be logged in N/A N/A f args kwds N/A N/A wraps f N/A wrapper N/A require_teacher N/A N/A f N/A N/A N/A 
    Wraps routing functions that require a user to be a teacher
     wrapper N/A N/A N/A args kwds N/A N/A N/A N/A N/A N/A N/A api user is_teacher N/A N/A N/A api config enable_teachers N/A N/A N/A WebException You must be a teacher! N/A N/A f args kwds N/A require_login N/A wraps f N/A wrapper N/A check_csrf N/A N/A f N/A N/A wrapper N/A N/A N/A args kwds N/A N/A N/A token session N/A N/A N/A InternalException CSRF token not in session N/A N/A token N/A request form N/A N/A N/A InternalException CSRF token not in form N/A N/A N/A session N/A token N/A N/A request form N/A token N/A N/A N/A InternalException CSRF token is not correct N/A N/A f args kwds N/A N/A wraps f require_login N/A wrapper N/A deny_blacklisted N/A N/A f N/A N/A wrapper N/A N/A N/A args kwds N/A N/A N/A f args kwds N/A N/A wraps f require_login N/A wrapper N/A require_admin N/A N/A f N/A N/A N/A 
    Wraps routing functions that require a user to be an admin
     wrapper N/A N/A N/A args kwds N/A N/A N/A N/A N/A session get admin False N/A N/A N/A WebException You must be an admin! N/A N/A f args kwds N/A N/A wraps f N/A wrapper N/A block_before_competition N/A N/A return_result N/A N/A N/A 
    Wraps a routing function that should be blocked before the start time of the competition
     decorator N/A N/A f N/A N/A N/A 
        Inner decorator
         wrapper N/A N/A N/A args kwds N/A N/A N/A N/A N/A N/A N/A datetime utcnow timestamp N/A N/A N/A N/A api config start_time timestamp N/A N/A N/A f args kwds N/A N/A return_result N/A N/A wraps f N/A wrapper N/A N/A decorator N/A block_after_competition N/A N/A return_result N/A N/A N/A 
    Wraps a routing function that should be blocked after the end time of the competition
     decorator N/A N/A f N/A N/A N/A 
        Inner decorator
         wrapper N/A N/A N/A args kwds N/A N/A N/A N/A N/A N/A N/A datetime utcnow timestamp N/A N/A N/A N/A api config end_time timestamp N/A N/A N/A f args kwds N/A N/A return_result N/A N/A wraps f N/A wrapper N/A N/A decorator N/A