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.
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.