Update: models now follow PEP, add connection func, example app for show all vm6 users #7

Merged
MOIS3Y merged 1 commits from MOIS3Y/isp-maintenance:db_connection into main 2024-02-12 11:35:04 +08:00
Owner

Arthur, please note that you should configure flake8 to work in pyCharm so that the linter checks the code for possibly forgotten imports, indents and unused variables.

In PR, I corrected the formatting and wrote a function to connect to the database. Now it will determine whether it is mysql or psql.
For demonstration, I added the

vm6 access users 

subcommand;
It will simply show a list of users in the database.

Arthur, please note that you should configure flake8 to work in pyCharm so that the linter checks the code for possibly forgotten imports, indents and unused variables. In PR, I corrected the formatting and wrote a function to connect to the database. Now it will determine whether it is mysql or psql. For demonstration, I added the ``` vm6 access users ``` subcommand; It will simply show a list of users in the database.
MOIS3Y added the
enhancement
label 2024-02-11 22:16:18 +08:00
MOIS3Y added 1 commit 2024-02-11 22:16:18 +08:00
MOIS3Y added this to the ISP maintenace app project 2024-02-11 22:16:18 +08:00
MOIS3Y requested review from a.garaev 2024-02-11 22:16:28 +08:00
a.garaev approved these changes 2024-02-11 22:43:16 +08:00
MOIS3Y merged commit f9a213fe3e into main 2024-02-12 11:35:04 +08:00
Sign in to join this conversation.
No description provided.