SmartBioTech / PBRcontrol

1 stars 1 forks source link

/log retrieves incorrect data in the first time-unspecific request (under certain conditions) #14

Closed DanDayne closed 5 years ago

DanDayne commented 5 years ago

The problem is that after the initial request with time specification is sent, PBRcontrol must remember the log_id of the last entry in database it retrieves so that it can continue from that point in the table when the following non-time-specific requests are made. However, if there are no data yet since the init time, the log_id PBRcontrol remembers will default to 0 and in the next, non-time-specific request, ALL data for the node from the table will be fetched.