Project constants

Constants.

CACHE_STORAGE_TIME = 10

The number of seconds the value should be stored in the cache (int).

EDGE_PERIOD_CHOICES = [('DT', 'Сегодня'), ('D3', 'Три дня назад'), ('W1', 'Неделя назад'), ('W2', 'Две недели назад'), ('W3', 'Три недели назад'), ('W4', 'Четыре недели назад'), ('W7', 'Семь недель назад'), ('M3', 'Три месяца назад'), ('M6', 'Шесть месяцев назад'), ('M9', 'Девять месяцев назад'), ('NC', 'Добавлено')]

Edge period choices.

EDGE_PERIOD_ALIASES = [{'alias': 'DT', 'humanly': 'Сегодня'}, {'alias': 'D3', 'humanly': 'Три дня назад'}, {'alias': 'W1', 'humanly': 'Неделя назад'}, {'alias': 'W2', 'humanly': 'Две недели назад'}, {'alias': 'W3', 'humanly': 'Три недели назад'}, {'alias': 'W4', 'humanly': 'Четыре недели назад'}, {'alias': 'W7', 'humanly': 'Семь недель назад'}, {'alias': 'M3', 'humanly': 'Три месяца назад'}, {'alias': 'M6', 'humanly': 'Шесть месяцев назад'}, {'alias': 'M9', 'humanly': 'Девять месяцев назад'}, {'alias': 'NC', 'humanly': 'Добавлено'}]

Edge period aliases at word adding for choice (list[dict[str, str]]). DEPRECATED - Use EDGE_PERIOD_CHOICES.

EDGE_PERIOD_ARGS = {'D3': {'days': 3}, 'DT': {'days': 0}, 'M3': {'weeks': 13}, 'M6': {'weeks': 26}, 'M9': {'weeks': 40}, 'W1': {'weeks': 1}, 'W2': {'weeks': 2}, 'W3': {'weeks': 3}, 'W4': {'weeks': 4}, 'W7': {'weeks': 7}}

The datetime.timedelta args representation of period aliases at word adding for study (dict[str, dict[str, int]]).

Include fields:
keystr

Period alias at word adding for study.

valuedict[str, int]]
Period of time at word adding for study.
keystr

The datetime.timedelta function argument name.

valueint

The datetime.timedelta function argument value.

PROGRESS_CHOICES = [('S', 'Изучаю'), ('R', 'Повторяю'), ('E', 'Проверяю'), ('K', 'Знаю')]

Progress study items choices (tuple[tuple[str, str]]).

DEFAULT_PROGRESS = ['S']

Default progress choice (str).

PROGRESS_ALIASES = [{'alias': 'S', 'humanly': 'Изучаю'}, {'alias': 'R', 'humanly': 'Повторяю'}, {'alias': 'E', 'humanly': 'Проверяю'}, {'alias': 'K', 'humanly': 'Знаю'}]

Progres aliases (list[dict[str, str]]). DEPRECATED - Use PROGRESS_CHOICES.

PROGRESS_STAGE_EDGES = {'E': [9, 10], 'K': [11], 'R': [7, 8], 'S': [0, 1, 2, 3, 4, 5, 6]}

A literal representation of an knowledge assessment (dict[str, list[int]]).

Include fields:
keystr

A literal representation of an knowledge assessment. Where: ‘S’ - is a word in the process of studied; ‘R’ - word in process of repetition; ‘E’ - is a word in the process of examination; ‘K’ - the word has been studied.

valueint

A digital range representation of an knowledge assessment.

LANGUAGE_ORDER_CHOICE = [('RN', 'Случайный порядок'), ('TN', 'На родной'), ('FN', родного')]

The order in which language translations of words are displayed (list[tuple[str, str]]`).

LANGUAGE_ORDER_ALIAS = [{'alias': 'RN', 'humanly': 'Случайный порядок'}, {'alias': 'TN', 'humanly': 'На родной'}, {'alias': 'FN', 'humanly': родного'}]

DEPRECATED - Use LANGUAGE_ORDER_CHOICE.

DEFAULT_LOOKUP_CONDITIONS = {'category': None, 'count_first': 0, 'count_last': 0, 'period_end_date': 'DT', 'period_start_date': 'NC', 'progress': ['S'], 'source': None}

Default choice for Term exercise lookup conditions (dict[str, int | None])

CALCULATION_TYPES = (('add', 'Сложение'), ('sub', 'Вычитание'), ('mul', 'Умножение'))

Mathematical exercise type choice.

Use in choices, note: max_length=10.