Fix timepoint

This commit is contained in:
stephb9959
2022-03-24 09:12:26 -07:00
parent a31ee31f20
commit db8774180e

View File

@@ -55,11 +55,11 @@ namespace OpenWifi {
std::string WhereClause;
if(FromDate && LastDate) {
WhereClause = fmt::format(" where boardId='{}' and (timestamp >= {} ) and ( timestamp <= {} ) ", boardId, FromDate, LastDate);
WhereClause = fmt::format(" boardId='{}' and (timestamp >= {} ) and ( timestamp <= {} ) ", boardId, FromDate, LastDate);
} else if (FromDate) {
WhereClause = fmt::format(" where boardId='{}' and (timestamp >= {}) ", boardId, FromDate);
WhereClause = fmt::format(" boardId='{}' and (timestamp >= {}) ", boardId, FromDate);
} else if (LastDate) {
WhereClause = fmt::format(" where boardId='{}' and (timestamp <= {}) ", boardId, LastDate);
WhereClause = fmt::format(" boardId='{}' and (timestamp <= {}) ", boardId, LastDate);
}
GetRecords(0,MaxRecords,Recs,WhereClause," order by timestamp ASC ");
return true;