-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
44 lines (40 loc) · 2.22 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from decouple import config
import os
SOURCE_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_DIR_DATA = os.path.join(SOURCE_DIR, 'static', 'data')
one_second = 1000
one_minute = 60 * one_second
five_minutes = one_minute * 5
three_seconds = one_second * 3
three_and_half = (3 * one_minute) + (30 * one_second)
temp_time = five_minutes * 1
two_minutes = 2 * one_minute
two_and_half_minutes = two_minutes + (30 * one_second)
three_minutes = 3 * one_minute
thirty_five_seconds = 35 * one_second
forty_seconds = 40 * one_second
one_and_half_minutes = 90000
twenty_seconds = 20 * one_second
fifteen_seconds = 15 * one_second
TIME_ON_PAGE_TASK = config('TIME_ON_PAGE_TASK', default=three_minutes)
TIME_ON_GAME = config('TIME_ON_GAME', default=two_and_half_minutes)
TIME_ON_PAGE_CALMING = config('TIME_ON_PAGE_CALMING', default=one_and_half_minutes)
TIME_ON_PAGE_TO_READ = config('TIME_ON_PAGE_TO_READ', default=fifteen_seconds)
TIME_ON_PAGE_MOOD = config('TIME_ON_PAGE_MOOD', default=twenty_seconds)
INDEX_BG_IMAGE = config('INDEX_BG_IMAGE', default='static/images/start_image.jpeg')
CALMING_VIDEO_1 = config('CALMING_VIDEO_1',
default='https://www.youtube.com/embed/POP5BzZLOKk?controls=0&start=21&autoplay=1')
CALMING_VIDEO_2 = config('CALMING_VIDEO_2',
default='https://www.youtube.com/embed/qUJ6nGK7wrw?controls=0&start=17&autoplay=1')
CALMING_VIDEO_3 = config('CALMING_VIDEO_3',
default='https://www.youtube.com/embed/y4BLQW1lCDE?controls=0&start=14&autoplay=1')
CALMING_VIDEO_4 = config('CALMING_VIDEO_4',
default='https://www.youtube.com/embed/TlQ1EEbBlcI?controls=0&start=21&autoplay=1')
GREEN_ZONE_VIDEO = config('GREEN_ZONE_VIDEO',
default="static/videos/green_zone_option_1_480p.mp4")
BLUE_ZONE_VIDEO = config('BLUE_ZONE_VIDEO',
default='static/videos/BORING_video_480p.mp4')
SESSION_NUMBER = config('SESSION_NUMBER', default=1, cast=int)
CUSTOM_STATIC_PATH = config('CUSTOM_STATIC_PATH', default=STATIC_DIR_DATA)
MATH_TASK_LEVEL = config('MATH_TASK_LEVEL', default='general')
# Options {'general': 'all mixed', 'younger': questions from 8-9 years, 'older': questions from 10-11-12 years old}