Skip to content

Date parsing#8

Open
sergeysablin99 wants to merge 2 commits into
notification-bot:date-parsingfrom
sergeysablin99:date-parsing
Open

Date parsing#8
sergeysablin99 wants to merge 2 commits into
notification-bot:date-parsingfrom
sergeysablin99:date-parsing

Conversation

@sergeysablin99
Copy link
Copy Markdown
Contributor

Now messages are parsing through Tomita-parsing + bug fixes

Comment thread Python-bot/data/base.json Outdated
@@ -1 +1 @@
{"205589546": {"2020-01-29|13:39:28.778879": "a", "2020-01-29|13:39:35.527274": "aa", "2020-01-29|13:39:40.711174": "aaa"}} No newline at end of file
{"205589546": {"2020-01-29|13:39:28.778879": "a", "2020-01-29|13:39:35.527274": "aa", "2020-01-29|13:39:40.711174": "aaa"}, "109297779": {"2020-02-07|21:46:53.837151": "\u041d\u0435 \u043c\u043e\u0433\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443", "2020-02-07|21:47:25.329122": "\u041d\u0435 \u043c\u043e\u0433\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443", "null": "\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043a\u0438\u043d\u043e 08.02.2020"}} No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Что с русским языком произошло? Ты файл с UTF-8 открываешь?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему миллисекунды сохраняются?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И что такое "null" как id?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Что с русским языком произошло? Ты файл с UTF-8 открываешь?

Файл открывается через твой модуль. В любом случае, отправляется он корректно

Comment thread Python-bot/server.py
date = datetime.datetime.now().isoformat('|')
else:
message = 'Не могу разобрать команду'
date = datetime.datetime.now().isoformat('|')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут не совсем так должно быть. Посмотри в моих коммитах как дата сохраняется

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants