mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement current memory index save
This commit is contained in:
parent
3706628225
commit
f3483cf0c3
1 changed files with 4 additions and 4 deletions
|
|
@ -134,14 +134,14 @@ void History::save(
|
|||
);
|
||||
|
||||
// Add new records
|
||||
for (const auto & VALUE : memory)
|
||||
int offset = -1; for (const auto & MEMORY : memory)
|
||||
{
|
||||
DB::SESSION::add(
|
||||
db,
|
||||
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
|
||||
VALUE.time,
|
||||
VALUE.request,
|
||||
-1 == index // @TODO
|
||||
MEMORY.time,
|
||||
MEMORY.request,
|
||||
++offset == index // is current
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue