Skip to content

Fix incorrect SQLite database path in market app - #7

Open
TanmayGaidhani wants to merge 1 commit into
jimdevops19:masterfrom
TanmayGaidhani:fix/issue-5-database
Open

Fix incorrect SQLite database path in market app#7
TanmayGaidhani wants to merge 1 commit into
jimdevops19:masterfrom
TanmayGaidhani:fix/issue-5-database

Conversation

@TanmayGaidhani

Copy link
Copy Markdown

Fixes #5

Problem

The /market route raised the following error:

sqlite3.OperationalError: no such table: item

Cause

The SQLite database path was resolving to the instance directory,
where the required item table was not present.

Fix

Updated the SQLite database path to explicitly use market.db
from the application root directory.

Testing

  • Reproduced the /market 500 error locally
  • Confirmed instance/market.db did not contain the item table
  • Confirmed the project market.db contains the item table
  • Updated the database path
  • Verified that the /market route works successfully

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.

P5. Models and Databases

1 participant