- Backend: Refactored tasks.py to directly invoke run_single_fna_pipeline.py for consistency. - Backend: Changed output format to ZIP and added auto-cleanup of intermediate files. - Backend: Fixed language parameter passing in API and tasks. - Frontend: Removed CRISPR Fusion UI elements from Submit and Monitor views. - Frontend: Implemented simulated progress bar for better UX. - Frontend: Restored One-click load button and added result file structure documentation. - Docker: Fixed critical Restarting loop by removing incorrect image directive in docker-compose.yml. - Docker: Optimized Dockerfile to correct .pixi environment path issues and prevent accidental deletion of frontend assets.
21 lines
491 B
Python
21 lines
491 B
Python
import sys
|
|
import os
|
|
|
|
# Ensure we can import from app
|
|
sys.path.append(os.getcwd())
|
|
|
|
from app.database import engine, Base
|
|
# Import models to ensure they are registered with Base
|
|
from app.models import Job, Step, JobLog
|
|
|
|
def init_db():
|
|
print("Creating database tables...")
|
|
try:
|
|
Base.metadata.create_all(bind=engine)
|
|
print("Tables created successfully!")
|
|
except Exception as e:
|
|
print(f"Error creating tables: {e}")
|
|
|
|
if __name__ == "__main__":
|
|
init_db()
|