Correction imports

This commit is contained in:
Colin Maudry
2026-03-18 23:21:47 +01:00
parent 6a6be51455
commit 0ac6c55d9e
3 changed files with 7 additions and 4 deletions
+4
View File
@@ -45,6 +45,10 @@ Tests require a running Chrome/Chromium browser. They use `DashComposite` from `
- `src/pages/*.py` — each page registers itself with `@register_page()` and owns its own layout and callbacks
- `run.py` — dev entry point; exports `server` (Flask) for gunicorn
### Module imports
- always import modules from the app starting with `src.` (e.g. `src.utils.`, `src.pages.recherche`, etc.)
### Key pages
| Page | URL | Purpose |
+1 -1
View File
@@ -2,7 +2,7 @@ import polars as pl
from dash import html
from src.figures import DataTable
from utils import add_links_in_dict, format_values, setup_table_columns
from src.utils import add_links_in_dict, format_values, setup_table_columns
def get_top_org_table(data, org_type: str, extra_columns: list):
+2 -3
View File
@@ -19,8 +19,7 @@ from dash import (
register_page,
)
from figures import make_column_picker
from src.figures import DataTable
from src.figures import DataTable, make_column_picker
from src.utils import (
columns,
df,
@@ -31,8 +30,8 @@ from src.utils import (
meta_content,
schema,
sort_table_data,
prepare_table_data,
)
from utils import prepare_table_data
update_date_timestamp = os.path.getmtime(os.getenv("DATA_FILE_PARQUET_PATH"))
update_date = datetime.fromtimestamp(update_date_timestamp).strftime("%d/%m/%Y")