DIVYANSHI SINGH commited on
Commit
96da217
·
1 Parent(s): 0f29378

Bypass Docker Read-Only locks by routing database to tmp

Browse files
Files changed (1) hide show
  1. database.py +2 -2
database.py CHANGED
@@ -17,8 +17,8 @@ from pathlib import Path
17
  import pandas as pd
18
  from datetime import datetime
19
 
20
- # Database file path relative to the project folder
21
- DB_PATH = Path(__file__).parent / "invoices.db"
22
 
23
 
24
  def init_db():
 
17
  import pandas as pd
18
  from datetime import datetime
19
 
20
+ # Database file path routed to /tmp to bypass Docker Read-Only locks
21
+ DB_PATH = Path("/tmp/invoices.db")
22
 
23
 
24
  def init_db():