-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: recovery features #423
Conversation
) | ||
|
||
for line in lines: | ||
print(line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
принты надо везде убрать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ок, сейчас снесем
False, | ||
) | ||
|
||
text_file = open(file_name, 'r') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pathlib import Path
Path(...).read_lines()
Лучше сделать так. Ты же здесь файл даже не закрываешь)
Те если сделал open, надо делать close, можно было через контекстный менеджер with ..., но лучше Path использовать в этом кейсе
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ОК, согласен, можно было бы и закрыть файл ) Переделаю на Path
|
||
""" | ||
from sportorg.common.otime import OTime | ||
from sportorg.gui.dialogs.file_dialog import get_open_file_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
эта функция не должна быть в modules. Лучше передай в recovery готовый путь. Должна быть правильная работа с зависимостями
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ОК, хорошо, буду передавать путь
) | ||
|
||
for line in lines: | ||
tokens = line.split(separator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше использовать модуль csv в питоне, он вообще в питоне из коробки доступен)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
принято
from tempfile import gettempdir | ||
|
||
from sportorg.gui.dialogs.file_dialog import get_open_file_name | ||
from sportorg.gui.dialogs.sportorg_import_dialog import SportOrgImportDialog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут тоже самое. Надо инверсию зависимостей или передать готовые значения
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ок
commit 06102cc Author: Sergei Kobelev <[email protected]> Date: Thu Dec 28 16:28:21 2023 +0500 Ignore punches before start (for people who like to test start gates and my favorite triathlon organizers, who deliver activated SIACs through start/controls/finish) (sportorg#425) commit 8d8435a Author: Sergei Kobelev <[email protected]> Date: Wed Dec 20 13:10:15 2023 +0500 feat: recovery features (sportorg#423) commit 698011f Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:16:09 2023 +0700 fix: shorter tab titles in the settings window (sportorg#424) commit 4ab5f11 Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:04:43 2023 +0700 feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]>
feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]> Squashed commit of the following: commit 06102cc Author: Sergei Kobelev <[email protected]> Date: Thu Dec 28 16:28:21 2023 +0500 Ignore punches before start (for people who like to test start gates and my favorite triathlon organizers, who deliver activated SIACs through start/controls/finish) (sportorg#425) commit 8d8435a Author: Sergei Kobelev <[email protected]> Date: Wed Dec 20 13:10:15 2023 +0500 feat: recovery features (sportorg#423) commit 698011f Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:16:09 2023 +0700 fix: shorter tab titles in the settings window (sportorg#424) commit 4ab5f11 Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:04:43 2023 +0700 feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]> fix: remove unused changes
feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]> Squashed commit of the following: commit 06102cc Author: Sergei Kobelev <[email protected]> Date: Thu Dec 28 16:28:21 2023 +0500 Ignore punches before start (for people who like to test start gates and my favorite triathlon organizers, who deliver activated SIACs through start/controls/finish) (sportorg#425) commit 8d8435a Author: Sergei Kobelev <[email protected]> Date: Wed Dec 20 13:10:15 2023 +0500 feat: recovery features (sportorg#423) commit 698011f Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:16:09 2023 +0700 fix: shorter tab titles in the settings window (sportorg#424) commit 4ab5f11 Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:04:43 2023 +0700 feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]> fix: remove unused changes
commit 06102cc Author: Sergei Kobelev <[email protected]> Date: Thu Dec 28 16:28:21 2023 +0500 Ignore punches before start (for people who like to test start gates and my favorite triathlon organizers, who deliver activated SIACs through start/controls/finish) (sportorg#425) commit 8d8435a Author: Sergei Kobelev <[email protected]> Date: Wed Dec 20 13:10:15 2023 +0500 feat: recovery features (sportorg#423) commit 698011f Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:16:09 2023 +0700 fix: shorter tab titles in the settings window (sportorg#424) commit 4ab5f11 Author: Aleksandr Karpov <[email protected]> Date: Wed Dec 20 14:04:43 2023 +0700 feat: new features for a marked track with penalty loops (sportorg#421) Co-authored-by: Aleksandr Karpov <[email protected]>
No description provided.