Repository¶
Models¶
models.api
¶
Episode
¶
Bases: BaseModel
Source code in src/models/api.py
31 32 |
|
episode_id: int
class-attribute
¶
Season
¶
Show
¶
Bases: BaseModel
Source code in src/models/api.py
27 28 |
|
show_id: int
class-attribute
¶
TVTimeUser
¶
UserDB
¶
UserIn
¶
UserOut
¶
Bases: BaseModel
Source code in src/models/api.py
11 12 13 14 15 |
|
models.data
¶
TVTimeDataModel
¶
Bases: JsonModel
Source code in src/models/data.py
6 7 8 9 10 11 12 13 14 15 |
|
Redis¶
repository.redis_repository
¶
RedisOMClient
¶
Source code in src/repository/redis_repository.py
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 45 46 47 |
|
redis = get_redis_connection(url=REDIS_URL)
instance-attribute
¶
__init__()
¶
Source code in src/repository/redis_repository.py
8 9 10 |
|
exists(key)
¶
Source code in src/repository/redis_repository.py
16 17 18 |
|
get_ttl(key)
¶
Source code in src/repository/redis_repository.py
20 21 22 |
|
get_tvtime_data(key)
¶
Source code in src/repository/redis_repository.py
24 25 26 |
|
get_tvtime_not_started_yet(key)
¶
Source code in src/repository/redis_repository.py
42 43 44 45 46 47 |
|
get_tvtime_not_watched_for_while(key)
¶
Source code in src/repository/redis_repository.py
35 36 37 38 39 40 |
|
get_tvtime_watch_next(key)
¶
Source code in src/repository/redis_repository.py
28 29 30 31 32 33 |
|
Celery¶
repository.celery_repository
¶
celery = Celery(__name__)
module-attribute
¶
scrape_task(user)
¶
Source code in src/repository/celery_repository.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|