Замена времени на DateTimeUnion. - #84
Conversation
Затронуты pymax/api/chats/service.py pymax/api/messenger/service.py pymax/infra/chat.py pymax/infra/message.py pymax/types/domain/chat.py
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Мне здесь не нравятся несколько вещей. Не стоит дублировать При этом нужно явно определить семантику Ещё в новом
marker if marker is not None else int(time.time() * 1000)Тогда 0 не будет ошибочно заменяться текущим временем. |
|
Оке, вечером сяду поправлю |
|
Закрою, доделаю для 2.5.0 |
Рефакторинг. Замена формата работы времени на DateTimeUnion. Пример кода для проверки, где при работе задействуется DTU: