grace-by-dev / grace-by-telegram-bots

Apache License 2.0
1 stars 1 forks source link

Update SQLite class #11

Open nick-konovalchuk opened 2 weeks ago

nick-konovalchuk commented 2 weeks ago

Update SQLite class
It is to be called DBManager.

  1. load_dotenv in main must be the single load_dotenv in the whole program.
  2. check_user_id,is_banned, is_admin are to be merged to simplify the code and reduce number of db requests. Update the places where these methods are called accordingly