{"id":16,"date":"2024-06-02T16:30:50","date_gmt":"2024-06-02T16:30:50","guid":{"rendered":"https:\/\/blogs.scummvm.org\/chico\/?p=16"},"modified":"2024-06-02T16:34:11","modified_gmt":"2024-06-02T16:34:11","slug":"week1-start","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/chico\/2024\/06\/02\/week1-start\/","title":{"rendered":"Week1 &#8211; Start"},"content":{"rendered":"<p>In the first week, my main task was to replace the original PHP server code with Python code. My plan was to use the Flask library to create a web server.<\/p>\n<p>During the first week, I primarily focused on rewriting all the functions in the original\u00a0<code>db_functions.php<\/code>\u00a0file. This mainly involved operations related to MySQL and SQL statements, so I used the\u00a0<code>pymysql<\/code> library to complete the rewrite. The commit record is here: <a href=\"https:\/\/github.com\/InariInDream\/scummvm-sites\/commits\/integrity\/\">https:\/\/github.com\/InariInDream\/scummvm-sites\/commits\/integrity\/<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18 aligncenter\" src=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-300x139.png\" alt=\"\" width=\"821\" height=\"381\" srcset=\"https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-300x139.png 300w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-1024x475.png 1024w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-768x356.png 768w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-1536x712.png 1536w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1-1200x556.png 1200w, https:\/\/blogs.scummvm.org\/chico\/wp-content\/uploads\/sites\/74\/2024\/06\/KNZM3GLMUQZBKB3ARSL8-1.png 1743w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>However, the appearance displayed on the web page cannot be generated as simply as in PHP using statements like\u00a0<code>echo \"&lt;h2&gt;&lt;u&gt;Fileset: {$id}&lt;\/u&gt;&lt;\/h2&gt;\";<\/code>. It needs to be rendered through Flask. Therefore, my focus for the next week will be on the design of the appearance (tables, forms).<\/p>\n<p>As of now, I haven\u2019t encountered any significant technical difficulties. It\u2019s just that there is quite a bit of code that needs to be replaced, so it will take some time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the first week, my main task was to replace the original PHP server code with Python code. My plan was to use the Flask library to create a web server. During the first week, I primarily focused on rewriting all the functions in the original\u00a0db_functions.php\u00a0file. This mainly involved operations related to MySQL and SQL [&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-16","post","type-post","status-publish","format-standard","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/16","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=16"}],"version-history":[{"count":3,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/posts\/16\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/chico\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}