Spaces:
Running
Running
cheikhaidev-ui Claude Sonnet 4.6 commited on
Commit Β·
f6ce4a9
1
Parent(s): 2fe2680
rename(hf): sync cineflow.{db,sql} from main, drop tidiane_flix.*
Browse files- Dockerfile +1 -1
- app_complete.py +1 -1
- tidiane_flix.db β cineflow.db +0 -0
- tidiane_flix.sql β cineflow.sql +0 -0
- init_db.py +2 -2
Dockerfile
CHANGED
|
@@ -5,7 +5,7 @@ WORKDIR /app
|
|
| 5 |
# Copier les fichiers nΓ©cessaires
|
| 6 |
COPY requirements.txt .
|
| 7 |
COPY app_complete.py .
|
| 8 |
-
COPY
|
| 9 |
COPY style.css .
|
| 10 |
COPY .streamlit ./.streamlit
|
| 11 |
|
|
|
|
| 5 |
# Copier les fichiers nΓ©cessaires
|
| 6 |
COPY requirements.txt .
|
| 7 |
COPY app_complete.py .
|
| 8 |
+
COPY cineflow.db .
|
| 9 |
COPY style.css .
|
| 10 |
COPY .streamlit ./.streamlit
|
| 11 |
|
app_complete.py
CHANGED
|
@@ -37,7 +37,7 @@ if 'show_landing' not in st.session_state:
|
|
| 37 |
st.session_state.show_landing = True
|
| 38 |
|
| 39 |
# Utiliser SQLite
|
| 40 |
-
DB_PATH = Path(__file__).parent / "
|
| 41 |
SQLALCHEMY_URL = f"sqlite:///{DB_PATH}"
|
| 42 |
|
| 43 |
# -------------------------
|
|
|
|
| 37 |
st.session_state.show_landing = True
|
| 38 |
|
| 39 |
# Utiliser SQLite
|
| 40 |
+
DB_PATH = Path(__file__).parent / "cineflow.db"
|
| 41 |
SQLALCHEMY_URL = f"sqlite:///{DB_PATH}"
|
| 42 |
|
| 43 |
# -------------------------
|
tidiane_flix.db β cineflow.db
RENAMED
|
File without changes
|
tidiane_flix.sql β cineflow.sql
RENAMED
|
File without changes
|
init_db.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"""
|
| 2 |
-
init_db.py β RecrΓ©e
|
| 3 |
Remplace le dump phpMyAdmin/MariaDB (ENGINE=InnoDB, backticks, ALTER TABLE ADD CONSTRAINT)
|
| 4 |
par un schΓ©ma 100 % compatible SQLite.
|
| 5 |
|
|
@@ -13,7 +13,7 @@ Corrections appliquΓ©es :
|
|
| 13 |
import sqlite3
|
| 14 |
import os
|
| 15 |
|
| 16 |
-
DB_PATH = os.path.join(os.path.dirname(__file__), "
|
| 17 |
|
| 18 |
|
| 19 |
# ββ SchΓ©ma SQLite natif ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 1 |
"""
|
| 2 |
+
init_db.py β RecrΓ©e cineflow.db en SQLite natif.
|
| 3 |
Remplace le dump phpMyAdmin/MariaDB (ENGINE=InnoDB, backticks, ALTER TABLE ADD CONSTRAINT)
|
| 4 |
par un schΓ©ma 100 % compatible SQLite.
|
| 5 |
|
|
|
|
| 13 |
import sqlite3
|
| 14 |
import os
|
| 15 |
|
| 16 |
+
DB_PATH = os.path.join(os.path.dirname(__file__), "cineflow.db")
|
| 17 |
|
| 18 |
|
| 19 |
# ββ SchΓ©ma SQLite natif ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|