burnedikt / diasend-nightscout-bridge

Synchronize your diasend data to nightscout.
MIT License
18 stars 18 forks source link

fix: prevent data from being imported twice due to overlapping data #5

Closed burnedikt closed 2 years ago

burnedikt commented 2 years ago

In its current state, it can happen that some treatments are imported more than once as we only check the latest entry (i.e. glucose value) to determine from when to start the next polling session. Therefore it can happen, that a treatment is processed twice.

This PR fixes this by also taking into account treatments and starting after the last treatment or glucose value.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 0.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: