Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docx parser #22

Merged
merged 13 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ dmypy.json
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/

static/
Empty file.
23 changes: 23 additions & 0 deletions adaptive_hockey_federation/core/user_card.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from dataclasses import dataclass
from datetime import date
from typing import Optional


@dataclass
class BaseUserInfo:
"""Основной класс с обязательными полями.
"""
name: str
surname: str
patronymic: str
date_of_birth: date
team: str
player_number: int
position: str


@dataclass
class HockeyData(BaseUserInfo):
"""Класс с необязательными полями из документов формата docx.
"""
numeric_status: Optional[int] = None
Empty file.
Loading
Loading