Help with sql database getting corrupted when I refresh repl.it page (PYTHON 3)
So basically, I will create a SQL database using the package called "Flask-SQLAlchemy". This database works completely fine until I refresh my page. When I refresh my page, and try running the program again, I get an error saying "sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed". Is there any reason this is happening, and maybe a possible fix?