Vikt0r-Nekrutenko / project_finances-client

Terminal application for tracking my finances
https://grhin0.pythonanywhere.com
0 stars 0 forks source link

Invalid data in view #13

Open Vikt0r-Nekrutenko opened 7 months ago

Vikt0r-Nekrutenko commented 7 months ago

If local unsynchronized data has a bigger version and remote data has a less version, where the program is open, I see the data remote data. DepositA - 1 version on server DepositB - 2 version on local Deposit view displays the DepositA.

Vikt0r-Nekrutenko commented 7 months ago
if(localTmp == collection.end())
   collection.push_back(remoteTmp);
else
    *localTmp = remoteTmp;

Equal without version checking!!!