mosdiary 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mosdiary-0.3.2 → mosdiary-0.3.3}/PKG-INFO +1 -1
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/client.py +1 -1
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/marks.py +5 -7
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary.egg-info/PKG-INFO +1 -1
- {mosdiary-0.3.2 → mosdiary-0.3.3}/pyproject.toml +1 -1
- {mosdiary-0.3.2 → mosdiary-0.3.3}/LICENSE +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/README.md +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/__init__.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/enums.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/exceptions.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/__init__.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/homework.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/lessons.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/profile.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary/types/schedule_events.py +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary.egg-info/SOURCES.txt +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary.egg-info/dependency_links.txt +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary.egg-info/requires.txt +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/mosdiary.egg-info/top_level.txt +0 -0
- {mosdiary-0.3.2 → mosdiary-0.3.3}/setup.cfg +0 -0
|
@@ -278,7 +278,7 @@ class MOSDiaryClient:
|
|
|
278
278
|
bool:
|
|
279
279
|
Выполнен ли запрос успешно
|
|
280
280
|
"""
|
|
281
|
-
success = await self._send_request('GET', 'https://school.mos.ru/v3/auth/logout', return_type='bool')
|
|
281
|
+
success = await self._send_request('GET', 'https://school.mos.ru/v3/auth/logout', return_type='bool', allow_redirects=True)
|
|
282
282
|
if success:
|
|
283
283
|
self.id = None
|
|
284
284
|
self.uid = None
|
|
@@ -12,12 +12,10 @@ class SubjectMark(BaseModel):
|
|
|
12
12
|
"""Школьная оценка по предмету"""
|
|
13
13
|
model_config = ConfigDict(extra='ignore')
|
|
14
14
|
|
|
15
|
-
#TODO: Описать
|
|
16
15
|
average: Decimal
|
|
16
|
+
"""Средний балл за аттестационный период"""
|
|
17
17
|
|
|
18
|
-
dynamic_type: MarkDynamicType = Field(
|
|
19
|
-
validation_alias=AliasChoices('dynamic_type', 'dynamic')
|
|
20
|
-
)
|
|
18
|
+
dynamic_type: MarkDynamicType = Field(validation_alias=AliasChoices('dynamic_type', 'dynamic'))
|
|
21
19
|
"""Динамика среднего балла по оценке"""
|
|
22
20
|
|
|
23
21
|
periods: list[SubjectMarkPeriod]
|
|
@@ -55,11 +53,11 @@ class SubjectMarkPeriod(BaseModel):
|
|
|
55
53
|
count: int
|
|
56
54
|
"""Кол-во оценок"""
|
|
57
55
|
|
|
58
|
-
target: MarkTarget
|
|
56
|
+
target: MarkTarget | None
|
|
59
57
|
"""Цель текущей оценки до следующего балла"""
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
fixed_value: int | None
|
|
60
|
+
"""Округлённое значение среднего балла"""
|
|
63
61
|
|
|
64
62
|
start_date: date = Field(validation_alias='start_iso')
|
|
65
63
|
"""Дата начала учебного периода"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|