{"id":76,"date":"2024-08-04T13:29:20","date_gmt":"2024-08-04T13:29:20","guid":{"rendered":"https:\/\/blogs.scummvm.org\/chico\/?p=76"},"modified":"2024-08-04T13:29:20","modified_gmt":"2024-08-04T13:29:20","slug":"week-10-fixing","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/chico\/2024\/08\/04\/week-10-fixing\/","title":{"rendered":"Week 10 &#8211; Fixing"},"content":{"rendered":"<p>This week, my main focus was on filling in gaps and fixing issues. Here are two significant changes I made:<\/p>\n<p>Due to the need for the database backend to return counts of matches, missing items, and extras when verifying file integrity for users, I quickly realized that returning only a few mappings containing counts after the database query was insufficient (other functions require detailed information). As a result, I changed the dictionary type from\u00a0<code>defaultdict(int)<\/code>\u00a0to\u00a0<code>defaultdict(list)<\/code>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-78\" src=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212825-300x78.jpg\" alt=\"\" width=\"592\" height=\"154\" srcset=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212825-300x78.jpg 300w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212825-1024x268.jpg 1024w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212825-768x201.jpg 768w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212825.jpg 1162w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>At the same time, I discovered that I couldn\u2019t retrieve user filesets on the fileset query page, even though the logs showed that I had indeed inserted several user-status filesets into the database. After investigating, I found the root cause of the issue. I had not considered inserting metadata for the game when the user-status filesets were added. After making some modifications, I resolved this problem.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-77\" src=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212426-300x68.jpg\" alt=\"\" width=\"646\" height=\"146\" srcset=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212426-300x68.jpg 300w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212426-1024x233.jpg 1024w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212426-768x175.jpg 768w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/08\/QQ\u622a\u56fe20240804212426.jpg 1172w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<p>In summary, this week\u2019s work was much easier than before; I just needed to test different scenarios and make fixes based on the results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, my main focus was on filling in gaps and fixing issues. Here are two significant changes I made: Due to the need for the database backend to return counts of matches, missing items, and extras when verifying file integrity for users, I quickly realized that returning only a few mappings containing counts after [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/76\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}