Add Lebanon daily casualties dataset infrastructure#699
Merged
Conversation
Adds source_data/lebanon-daily/, build script, config, and validator entries for a new Lebanon daily casualties dataset sourced from Lebanon MoPH (moph.gov.lb). Tracks killed/injured with cumulative and derived ext_ series, mirroring the Gaza daily pipeline. https://claude.ai/code/session_01BfbHunqYYzJDm875fViYAU
Generated by the new gen-lbdaily pipeline (empty dataset placeholder). https://claude.ai/code/session_01BfbHunqYYzJDm875fViYAU
Scrapes all 85 available daily situation reports from the Lebanon Ministry of Public Health (moph.gov.lb) covering the Israeli aggression that began March 2, 2026. Includes cumulative killed/injured and computed daily deltas through June 11, 2026 (3,711 martyrs, 11,483 wounded). Also adds scraper scripts used to collect the data: - scripts/scrape_lebanon_moph.py — scans moph.gov.lb Media IDs - scripts/create_lebanon_md_files.py — generates source .md files https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
- report_period now reflects actual days since previous report (x24h) instead of a hardcoded 24 for all entries; six reports with coverage gaps now carry the correct period (96h, 120h, 48h, 72h, 168h, 48h) - Merge duplicate findReportingDiscrepancies import into the existing content import block in lebanon-daily.ts https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
- Add LebanonDailyV3 to ApiResource enum - Create scripts/data/v3/lebanon-daily.ts mirroring the v2 pipeline so the dataset is served at both api/v2/ and api/v3/ paths - Update gen-lbdaily to run both v2 and v3 scripts - Apply oxfmt fix to v2 script (flatten single-expression filter callback) https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
Auto-updated by gen-lbdaily; adds api/v3 entries for the Lebanon daily casualties dataset alongside the existing api/v2 entries. https://claude.ai/code/session_01HTi9iUbh235WsLusjgU5t7
Source data: append moph.gov.lb daily casualty reports for Jun 13–21, 2026 (no standard report published for Jun 12; covered by a 48h report period on Jun 13). Regenerate lebanon_casualties_daily.json/.min.json from the updated source_data so the extended series stays in sync. Decap CMS: add a lebanon-daily collection to site/static/admin/config.yml so reports can be edited through the CMS, matching the existing gaza-daily/west-bank-daily collections. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019UyFgNKXzoKaG61D3WDZUF
Now that reports are maintained through the Decap CMS, remove the one-off Python scraper/generator scripts (scrape_lebanon_moph.py, create_lebanon_md_files.py). Drop the V2 Lebanon daily API: only V3 is supported. Removes the LebanonDailyV2 ApiResource, the v2 generator script, the v2 manifest entry, and the v2 step from the gen-lbdaily npm script. Remove the ext_ series from the Lebanon dataset — with no carry-forward gaps the ext_ columns are identical to the base killed/injured fields. Drops the deriveExtendedSeries step and its config (lebanonCarryForward, lebanonExtDeltas), the ext_ CMS fields, and regenerates the JSON. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019UyFgNKXzoKaG61D3WDZUF
Deploying palestine-numbers with
|
| Latest commit: |
04eb3f4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://27663a4d.palestine-numbers.pages.dev |
| Branch Preview URL: | https://claude-lebanon-daily-casualt-gdxk.palestine-numbers.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds source_data/lebanon-daily/, build script, config, and validator
entries for a new Lebanon daily casualties dataset sourced from Lebanon
MoPH (moph.gov.lb). Tracks killed/injured with cumulative and derived
ext_ series, mirroring the Gaza daily pipeline.