{"action":"created","issue":{"url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/29","repository_url":"https://api.github.com/repos/eyeonus/Trade-Dangerous","labels_url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/29/comments","events_url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/29/events","html_url":"https://github.com/eyeonus/Trade-Dangerous/pull/29","id":382419994,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTMzMTA5","number":29,"title":"Add Batch Importing for .prices files into Trade Dangerous","user":{"login":"Ryanel","id":866151,"node_id":"MDQ6VXNlcjg2NjE1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/866151?v=4","gravatar_id":"","url":"https://api.github.com/users/Ryanel","html_url":"https://github.com/Ryanel","followers_url":"https://api.github.com/users/Ryanel/followers","following_url":"https://api.github.com/users/Ryanel/following{/other_user}","gists_url":"https://api.github.com/users/Ryanel/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryanel/subscriptions","organizations_url":"https://api.github.com/users/Ryanel/orgs","repos_url":"https://api.github.com/users/Ryanel/repos","events_url":"https://api.github.com/users/Ryanel/events{/privacy}","received_events_url":"https://api.github.com/users/Ryanel/received_events","type":"User","site_admin":false},"labels":[{"id":966214727,"node_id":"MDU6TGFiZWw5NjYyMTQ3Mjc=","url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":966214729,"node_id":"MDU6TGFiZWw5NjYyMTQ3Mjk=","url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":966214728,"node_id":"MDU6TGFiZWw5NjYyMTQ3Mjg=","url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-11-19T22:30:56Z","updated_at":"2018-11-20T06:01:51Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/pulls/29","html_url":"https://github.com/eyeonus/Trade-Dangerous/pull/29","diff_url":"https://github.com/eyeonus/Trade-Dangerous/pull/29.diff","patch_url":"https://github.com/eyeonus/Trade-Dangerous/pull/29.patch"},"body":"Hello!\r\n\r\nWhile flying around the galaxy, I use Elite Dangerous Market Connector to get Trade Dangerous prices files. I import these files so that I can get more accurate advice from Trade Dangerous without having to download from eddb, which takes about 25 minutes for me.\r\n\r\nI end up with a lot of .prices files, so I wrote a tiny script to import them all into Trade Dangerous. However, that took way too long to import, up to 10 minutes with 15 or so files! This is because I had to import the files one by one.\r\n\r\nThe example on the wiki, where you type `trade.py import *.prices` error-ed out on Windows 10. It doesn't look like the code handles multiple files. \r\n\r\nSo, I wrote this batch importer to speed up the process. It simply delays regenerating the prices file until all files have been processed.\r\n\r\nThe way you invoke it is: `trade.py import --batch \"file1;file2;file3\"`, with paths separated by a semicolon. The quotes are optional, but necessary if any path has a space.\r\n\r\nUsing this, my import time has gone down to under a minute for 25~ files.\r\n\r\nI'd like a quick look over on this @eyeonus , since this is my first time touching your code-base, and I don't want to do something like corrupting the database. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/comments/440154196","html_url":"https://github.com/eyeonus/Trade-Dangerous/pull/29#issuecomment-440154196","issue_url":"https://api.github.com/repos/eyeonus/Trade-Dangerous/issues/29","id":440154196,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDE1NDE5Ng==","user":{"login":"Ryanel","id":866151,"node_id":"MDQ6VXNlcjg2NjE1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/866151?v=4","gravatar_id":"","url":"https://api.github.com/users/Ryanel","html_url":"https://github.com/Ryanel","followers_url":"https://api.github.com/users/Ryanel/followers","following_url":"https://api.github.com/users/Ryanel/following{/other_user}","gists_url":"https://api.github.com/users/Ryanel/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryanel/subscriptions","organizations_url":"https://api.github.com/users/Ryanel/orgs","repos_url":"https://api.github.com/users/Ryanel/repos","events_url":"https://api.github.com/users/Ryanel/events{/privacy}","received_events_url":"https://api.github.com/users/Ryanel/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T06:01:51Z","updated_at":"2018-11-20T06:01:51Z","author_association":"NONE","body":"I believe that issue is fixed. Didn't have to do much parsing. I used the stat() like you suggested. Tell me how this looks!"}}
{"actor":{"display_login":"Ryanel"}}