Correction imports
This commit is contained in:
@@ -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
@@ -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):
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user