surfiniaburger commited on
Commit
f9d4dc5
·
1 Parent(s): d3e96d2
Files changed (1) hide show
  1. local_database.py +3 -0
local_database.py CHANGED
@@ -25,6 +25,9 @@ def init_db():
25
  - 'farm_analysis' table stores analysis data.
26
  """
27
  print("Initializing database...")
 
 
 
28
  conn = get_db_connection()
29
  if conn is None:
30
  print("Database connection failed, cannot initialize.")
 
25
  - 'farm_analysis' table stores analysis data.
26
  """
27
  print("Initializing database...")
28
+ # Ensure a clean slate for development/testing
29
+ delete_database_and_index()
30
+
31
  conn = get_db_connection()
32
  if conn is None:
33
  print("Database connection failed, cannot initialize.")