Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/views/dashboard.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pull the latest changes from main branch

Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ def show():
# --- 3. PLOTTING LOGIC ---
if selected_curves:
with st.spinner("Fetching log data..."):
# UPDATED QUERY: Join LogData -> CurveInfo
# We filter CurveInfo by well_log_id, then get data for those curves.
# Join LogData -> CurveInfo to filter by mnemonic
results = db.query(LogData.depth, LogData.value, CurveInfo.mnemonic)\
.join(CurveInfo, LogData.curve_info_id == CurveInfo.id)\
.filter(
CurveInfo.well_log_id == selected_log_id, # Filter via CurveInfo
LogData.well_log_id == selected_log_id,
CurveInfo.mnemonic.in_(selected_curves)
).all()

Expand Down
2 changes: 1 addition & 1 deletion migrations/env.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for these changes. Please undo them.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Fallback for local development
config.set_main_option(
"sqlalchemy.url",
"mysql+pymysql://root@localhost:3306/well_log_db"
"mysql+pymysql://root:root@localhost:3307/well_log_db"
)

# -----------------------
Expand Down