Skip to content

Commit

Permalink
Fixed missing "very_heavy" tag. Closes #3
Browse files Browse the repository at this point in the history
As drip. only offers three levels of bleeding (1,2,3), "very_heavy" is grouped into 3 with "heavy".
  • Loading branch information
fabfabretti committed Feb 9, 2024
1 parent a0e73a8 commit ef8fa0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ In the table below I explain the conversion I used between the two system.

| Clue | drip. |
|----------|-------------|
| period| bleeding.value = [1:3], bleeding.exclude = false |
| period/light| bleeding.value = 1, bleeding.exclude = false |
| period/medium| bleeding.value = 2, bleeding.exclude = false |
| period/heavy| bleeding.value = 3, bleeding.exclude = false |
| period/very_heavy| bleeding.value = 3, bleeding.exclude = false |
| spotting|bleeding.value = 0, bleeding.exclude = true|
|pain/period_cramps|pain.cramps|
|pain/lower_back|pain.backache|
Expand Down Expand Up @@ -62,6 +65,7 @@ In the table below I explain the conversion I used between the two system.


## Changelog
* 2024.01.09 Fixed missing conversion for "period/very_heavy" tag.
* 2024.01.30 Fixed Clue email, and changed conversion logic so that spotting is not counted as a period.


Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function clueToObjects(dataString) {
var entrydates = Array.from(new Set(data.map(entry => entry.date)))

//Equivalence between Clue and drip. bleeding value
var bleedingValues={"light":1,"medium":2,"heavy":3}
var bleedingValues={"light":1,"medium":2,"heavy":3,"very_heavy":3}


//Now for each unique clue date we want to generate one drip entry.
Expand Down

0 comments on commit ef8fa0b

Please sign in to comment.