TWSD-627 - Issue with WebUI Page Not Displaying Data ||AS-19775|| IPPB
Review Request #801 — Created April 16, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| shuinvy | |
| APV10 | |
| rel_apv_10_7 | |
| TWSD-627 | |
| Reviewers | |
| jasonchang, kevin.poh, marychou, timsu | |
Create tables of database before inserting data.
The root cause is exception is thrown because there is no table while inserting data, and the error message rewrite the database file accidentally.
Solution: Create tables before inserting data.
I also use class to address original code.
Add sqlite3.DatabaseError handing to prevent the sqlite database file is corrupted.
The table init sql in the file DatabaseUtils.py is same in the /usr/click/bin/webui_storemon/userland_db_sql.h
Check file is sqlite3 database before read table of databaseBesides,
Jason Chang also add log in the c code,
so I add the changes in this review, too.
