Alexey Skobkin skobkin
skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-22 23:07:47 +03:00
database_module

If this method doesn't handle user's subscription to the feed than we should have somethig like def subscribe_user(user_id: int, feed_id: int) and def unsubscribe_user(user_id: int, feed_id: int).

skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-22 23:06:43 +03:00
database_module

It's better to call this url.

skobkin commented on issue Miroslavsckaya/tg_rss_bot#6 2022-05-22 20:43:47 +03:00
Persistence module (database interaction)

We forgot about get_user() method. So we should implement it too 🤷‍♂️

skobkin opened issue Miroslavsckaya/tg_rss_bot#18 2022-05-22 20:19:04 +03:00
Refactor/Optimize transactions
skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-21 18:00:24 +03:00
database_module

By the way just database.py is enough.

skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-21 17:48:42 +03:00
database_module

Two things that concern me a bit:

skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-19 21:37:35 +03:00
database_module

We'd better have database path passed as an argument of constructor than just hardcode it here.

skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-19 21:37:35 +03:00
database_module

I think we'll have not only subscribers data in this database, so it's pretty safe to just call it something like database.db/bot.db/database.sqlite.

skobkin suggested changes for Miroslavsckaya/tg_rss_bot#17 2022-05-19 21:37:35 +03:00
database_module
skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-19 21:37:35 +03:00
database_module

It'll most likely cause an error on the second run because the table was already created earlier

skobkin commented on pull request Miroslavsckaya/tg_rss_bot#17 2022-05-19 21:37:35 +03:00
database_module

I'm not sure if we need a Singleton here at all. We'll better handle database connections using direct injections into class constructors other than just calling them in the middle of the class method.

skobkin commented on issue Miroslavsckaya/tg_rss_bot#6 2022-05-19 19:51:22 +03:00
Persistence module (database interaction)

@Miroslavsckaya we also need to have migrations to be able to properly develop the project as a team. So I've created #16 for you. You can implement that after imlementing a draft of this task.

skobkin opened issue Miroslavsckaya/tg_rss_bot#16 2022-05-19 19:47:01 +03:00
Database initialization and migration
skobkin opened issue Miroslavsckaya/tg_rss_bot#15 2022-05-15 22:59:11 +03:00
Migrate persistence module to PostgreSQL
skobkin commented on issue Miroslavsckaya/tg_rss_bot#6 2022-05-15 22:57:23 +03:00
Persistence module (database interaction)

@Miroslavsckaya, let's use SQLite in MVP to save time. I'll create another ticket for PostgreSQL migration.

skobkin pushed to master at skobkin/linux-config 2022-05-13 14:22:43 +03:00
3896f9eb10 desktop. Enabling CONFIG_INPUT_UINPUT=m for Bluetooth control.
c81c1c7a4f desktop. 5.17.7 oldconfig.
Compare 2 commits »
skobkin opened issue skobkin/docker-stacks#37 2022-05-11 18:56:11 +03:00
HTTPBin - request debug
skobkin pushed to feature_telegram at Miroslavsckaya/tg_rss_bot 2022-05-02 23:45:47 +03:00
ec6d707a56 telegram. Code style changes.
skobkin pushed to feature_telegram at Miroslavsckaya/tg_rss_bot 2022-05-02 23:44:16 +03:00
6c83447eb8 telegram. Code style changes.
skobkin pushed to feature_telegram at Miroslavsckaya/tg_rss_bot 2022-05-02 23:41:26 +03:00
8cb5b4733a telegram. Making more detailed logic of notification. Slight refactoring.