[editor] More detailed upload changeset information.

This commit is contained in:
Alex Zolotarev 2016-01-26 13:53:56 +03:00 committed by Sergey Yershov
parent 78981ee7ee
commit f95890506c

View file

@ -632,9 +632,12 @@ void Editor::UploadChanges(string const & key, string const & secret, TChangeset
LOG(LDEBUG, ("There are no local edits to upload."));
return;
}
tags["created_by"] = "MAPS.ME " OMIM_OS_NAME;
{
auto const stats = GetStats();
tags["total_edits"] = strings::to_string(stats.m_edits.size());
tags["uploaded_edits"] = strings::to_string(stats.m_uploadedCount);
tags["created_by"] = "MAPS.ME " OMIM_OS_NAME;
}
// TODO(AlexZ): features access should be synchronized.
auto const lambda = [this](string key, string secret, TChangesetTags tags, TFinishUploadCallback callBack)
{