Skip to content

Fix wdpa id column name #692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged

Fix wdpa id column name #692

merged 2 commits into from
May 5, 2025

Conversation

solomon-negusse
Copy link
Member

No description provided.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.56%. Comparing base (9bbb122) to head (b6cc841).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #692   +/-   ##
========================================
  Coverage    76.56%   76.56%           
========================================
  Files          143      143           
  Lines         6704     6704           
========================================
  Hits          5133     5133           
  Misses        1571     1571           
Flag Coverage Δ
unittests 76.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@solomon-negusse solomon-negusse requested a review from danscales May 5, 2025 16:28
@@ -288,7 +288,7 @@ async def get_wdpa_geostore_id(dataset, version, wdpa_id):
sql: Select = (
db.select(columns_etc)
.select_from(src_table)
.where(db.text("wdpaid=:wdpa_id").bindparams(wdpa_id=wdpa_id))
.where(db.text("wdpa_pid=:wdpa_id").bindparams(wdpa_id=wdpa_id))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to be sure - you really mean wdpa_pid, here, rather that wdpa_id? Is wdpa_pid the name of the field in the database?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's wdpa_pid in the database -- i just surfaced it using what I think is user friendly wdpa_id

@solomon-negusse solomon-negusse merged commit 7e3a1a8 into develop May 5, 2025
1 of 2 checks passed
@solomon-negusse solomon-negusse deleted the gtc-3268/wdpa-aoi-dm branch May 5, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants