{"action":"opened","issue":{"url":"https://api.github.com/repos/koreader/koreader/issues/1718","labels_url":"https://api.github.com/repos/koreader/koreader/issues/1718/labels{/name}","comments_url":"https://api.github.com/repos/koreader/koreader/issues/1718/comments","events_url":"https://api.github.com/repos/koreader/koreader/issues/1718/events","html_url":"https://github.com/koreader/koreader/issues/1718","id":118225516,"number":1718,"title":"Save the statistics data in to the history file","user":{"login":"apletnev","id":220872,"avatar_url":"https://avatars.githubusercontent.com/u/220872?v=3","gravatar_id":"","url":"https://api.github.com/users/apletnev","html_url":"https://github.com/apletnev","followers_url":"https://api.github.com/users/apletnev/followers","following_url":"https://api.github.com/users/apletnev/following{/other_user}","gists_url":"https://api.github.com/users/apletnev/gists{/gist_id}","starred_url":"https://api.github.com/users/apletnev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apletnev/subscriptions","organizations_url":"https://api.github.com/users/apletnev/orgs","repos_url":"https://api.github.com/users/apletnev/repos","events_url":"https://api.github.com/users/apletnev/events{/privacy}","received_events_url":"https://api.github.com/users/apletnev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-21T22:39:29Z","updated_at":"2015-11-21T22:39:29Z","closed_at":null,"body":"Instead of using additional folder with stat files, regarding #1712 we decided to move the data in to the history file of book. Also to reduce size of history file, change format of statistics data like this:\r\n\r\n\t[\"stats\"] = {\r\n\t\t[\"total_time\"] = 18,\r\n\t\t[\"authors\"] = \"William Shakespeare\",\r\n\t\t[\"title\"] = \"Romeo and Juliet\",\r\n\t\t[\"notes\"] = 0,\r\n\t\t[\"highlights\"] = 0,\r\n\t\t[\"pages\"] = 202,\r\n\t\t[\"details\"] = {\r\n\t\t\t[1448142254] = 1,\r\n\t\t\t[1447682801] = 2,\r\n\t\t\t[1448142299] = 3,\r\n\t\t\t[1448142263] = 2,\r\n\t\t\t[1448142306] = 5,\r\n\t\t\t[1448142302] = 4\r\n\t\t},\r\n\t\t[\"series\"] = \"\",\r\n\t\t[\"language\"] = \"en\"\r\n\t}\r\n\r\nDetails contains in key - timestamp, in value - page"}}