{"action":"created","issue":{"url":"https://api.github.com/repos/cms-dev/cms/issues/730","repository_url":"https://api.github.com/repos/cms-dev/cms","labels_url":"https://api.github.com/repos/cms-dev/cms/issues/730/labels{/name}","comments_url":"https://api.github.com/repos/cms-dev/cms/issues/730/comments","events_url":"https://api.github.com/repos/cms-dev/cms/issues/730/events","html_url":"https://github.com/cms-dev/cms/issues/730","id":216650284,"number":730,"title":"Change the meaning of some variables in the --filename option of cmsExportSubmissions","user":{"login":"wafrelka","id":4510500,"avatar_url":"https://avatars1.githubusercontent.com/u/4510500?v=4","gravatar_id":"","url":"https://api.github.com/users/wafrelka","html_url":"https://github.com/wafrelka","followers_url":"https://api.github.com/users/wafrelka/followers","following_url":"https://api.github.com/users/wafrelka/following{/other_user}","gists_url":"https://api.github.com/users/wafrelka/gists{/gist_id}","starred_url":"https://api.github.com/users/wafrelka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wafrelka/subscriptions","organizations_url":"https://api.github.com/users/wafrelka/orgs","repos_url":"https://api.github.com/users/wafrelka/repos","events_url":"https://api.github.com/users/wafrelka/events{/privacy}","received_events_url":"https://api.github.com/users/wafrelka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-24T04:54:36Z","updated_at":"2018-04-11T07:54:31Z","closed_at":"2018-04-11T07:54:31Z","author_association":"CONTRIBUTOR","body":"If we want contestants to submit their output and source code in OutputOnly tasks (like GCJ), we usually set the SubmissionFormat to something like `[\"output_data.txt\", \"source.%l\"]`.\r\n\r\n`cmsExportSubmissions` command cannot handle this configuration properly. Neither `--filename {name}{ext}` nor `--filename {name}` are expanded to the actual filename specified in the SubmissionFormat. `{name}{ext}` is expanded to `output_data.txt.c` and `source.c`. `{name}` is expanded to `output_data.txt` and `source`. This is inconvenient.\r\n\r\nI want change the meaning of some variables in `--filename` option of the command. I want change `{ext}` to reflect the actual extension and `{name}` to reflect the actual basename so that `{name}{ext}` will be expanded to the actual filename properly.\r\n\r\nAdditionally, I want add a new variable which is expanded to the submission time in a more comfortable format like `20170324135522` (`yyyymmddhhmmss`).\r\n\r\nWhat do you think about this suggestion?"},"comment":{"url":"https://api.github.com/repos/cms-dev/cms/issues/comments/380362028","html_url":"https://github.com/cms-dev/cms/issues/730#issuecomment-380362028","issue_url":"https://api.github.com/repos/cms-dev/cms/issues/730","id":380362028,"user":{"login":"wafrelka","id":4510500,"avatar_url":"https://avatars1.githubusercontent.com/u/4510500?v=4","gravatar_id":"","url":"https://api.github.com/users/wafrelka","html_url":"https://github.com/wafrelka","followers_url":"https://api.github.com/users/wafrelka/followers","following_url":"https://api.github.com/users/wafrelka/following{/other_user}","gists_url":"https://api.github.com/users/wafrelka/gists{/gist_id}","starred_url":"https://api.github.com/users/wafrelka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wafrelka/subscriptions","organizations_url":"https://api.github.com/users/wafrelka/orgs","repos_url":"https://api.github.com/users/wafrelka/repos","events_url":"https://api.github.com/users/wafrelka/events{/privacy}","received_events_url":"https://api.github.com/users/wafrelka/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T07:54:31Z","updated_at":"2018-04-11T07:54:31Z","author_association":"CONTRIBUTOR","body":"fulfilled by #910"}}
{"actor":{"display_login":"wafrelka"}}