{"action":"created","comment":{"url":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments/72583554","id":72583554,"diff_hunk":"@@ -15,19 +15,27 @@\n {% block onload %} onload='javascript:textareaformat();' {% endblock %}\n \n {% block manage %}\n-<form action=\"\" method=\"post\" name=frm onSubmit=\"return autosubmit();\">\n+<form action=\"\" method=\"post\" name=frm onSubmit=\"return autosubmit();\" enctype=\"multipart/form-data\">\n   {% csrf_token %}\n   <center><table class=span1>\n   <tr><td>Summary: <td>{{ form.summary }}{{ form.summary.errors }}\n   <tr><td> Language: <td> {{form.language}}{{form.language.errors}}\n   <tr><td> Active: <td> {{ form.active }}{{form.active.errors}} &nbsp; Type: &nbsp;{{ form.type }}{{form.type.errors}}\n-  <tr><td>Points:<td><button class=\"btn-mini\" type=\"button\" onClick=\"increase(frm);\">+</button>{{ form.points }}<button class=\"btn-mini\" type=\"button\" onClick=\"decrease(frm);\">-</button>{{ form.points.errors }} \n+  <tr><td>Points:<td><button class=\"btn-mini\" type=\"button\" onClick=\"increase(frm);\">+</button>{{form.points }}<button class=\"btn-mini\" type=\"button\" onClick=\"decrease(frm);\">-</button>{{ form.points.errors }} \n     <tr><td><strong>Rendered: </strong><td><p id='my'></p>\n   <tr><td>Description: <td>{{ form.description}}  {{form.description.errors}}\n   <tr><td>Tags: <td>{{ form.tags }}\n   <tr><td>Snippet: <td>{{ form.snippet }}\n   <tr><td> Test Case Type: <td> {{ form.test_case_type }}{{ form.test_case_type.errors }}\n-\n+  <tr><td> File: <td> {{ upload_form.file_field }}{{ upload_form.file_field.errors }}\n+  {% if uploaded_files %}<br><b>Uploaded files:</b><br>Check the box to delete or extract files<br>\n+  {% for file in uploaded_files %}\n+  <input type=\"checkbox\" name=\"clear\" value=\"{{file.id}}\">&nbsp;delete</input>&nbsp;\n+  <input type=\"checkbox\" name=\"extract\" value=\"{{file.id}}\" >{% if file.extract %} dont extract{% else %}","path":"yaksh/templates/yaksh/add_question.html","position":23,"original_position":23,"commit_id":"20d12113ac98f09a0c8a6331712b78b70022e469","original_commit_id":"20d12113ac98f09a0c8a6331712b78b70022e469","user":{"login":"prathamesh920","id":3014000,"avatar_url":"https://avatars.githubusercontent.com/u/3014000?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh920","html_url":"https://github.com/prathamesh920","followers_url":"https://api.github.com/users/prathamesh920/followers","following_url":"https://api.github.com/users/prathamesh920/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh920/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh920/subscriptions","organizations_url":"https://api.github.com/users/prathamesh920/orgs","repos_url":"https://api.github.com/users/prathamesh920/repos","events_url":"https://api.github.com/users/prathamesh920/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh920/received_events","type":"User","site_admin":false},"body":"Is there a way to avoid upload of files with same name?","created_at":"2016-07-28T08:35:09Z","updated_at":"2016-07-28T08:35:09Z","html_url":"https://github.com/FOSSEE/online_test/pull/113#discussion_r72583554","pull_request_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments/72583554"},"html":{"href":"https://github.com/FOSSEE/online_test/pull/113#discussion_r72583554"},"pull_request":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/FOSSEE/online_test/pulls/113","id":76705965,"html_url":"https://github.com/FOSSEE/online_test/pull/113","diff_url":"https://github.com/FOSSEE/online_test/pull/113.diff","patch_url":"https://github.com/FOSSEE/online_test/pull/113.patch","issue_url":"https://api.github.com/repos/FOSSEE/online_test/issues/113","number":113,"state":"open","locked":false,"title":"File based questions","user":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"body":"Moderator can set questions based on files for any language","created_at":"2016-07-08T06:12:48Z","updated_at":"2016-07-28T08:35:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8735063d149c805e5ea43033517d87827ab3824","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/113/commits","review_comments_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/113/comments","review_comment_url":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FOSSEE/online_test/issues/113/comments","statuses_url":"https://api.github.com/repos/FOSSEE/online_test/statuses/20d12113ac98f09a0c8a6331712b78b70022e469","head":{"label":"adityacp:file_based_questions","ref":"file_based_questions","sha":"20d12113ac98f09a0c8a6331712b78b70022e469","user":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"repo":{"id":58149021,"name":"online_test","full_name":"adityacp/online_test","owner":{"login":"adityacp","id":15092744,"avatar_url":"https://avatars.githubusercontent.com/u/15092744?v=3","gravatar_id":"","url":"https://api.github.com/users/adityacp","html_url":"https://github.com/adityacp","followers_url":"https://api.github.com/users/adityacp/followers","following_url":"https://api.github.com/users/adityacp/following{/other_user}","gists_url":"https://api.github.com/users/adityacp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityacp/subscriptions","organizations_url":"https://api.github.com/users/adityacp/orgs","repos_url":"https://api.github.com/users/adityacp/repos","events_url":"https://api.github.com/users/adityacp/events{/privacy}","received_events_url":"https://api.github.com/users/adityacp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adityacp/online_test","description":"Online quiz/exam taking application. ","fork":true,"url":"https://api.github.com/repos/adityacp/online_test","forks_url":"https://api.github.com/repos/adityacp/online_test/forks","keys_url":"https://api.github.com/repos/adityacp/online_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adityacp/online_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adityacp/online_test/teams","hooks_url":"https://api.github.com/repos/adityacp/online_test/hooks","issue_events_url":"https://api.github.com/repos/adityacp/online_test/issues/events{/number}","events_url":"https://api.github.com/repos/adityacp/online_test/events","assignees_url":"https://api.github.com/repos/adityacp/online_test/assignees{/user}","branches_url":"https://api.github.com/repos/adityacp/online_test/branches{/branch}","tags_url":"https://api.github.com/repos/adityacp/online_test/tags","blobs_url":"https://api.github.com/repos/adityacp/online_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adityacp/online_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adityacp/online_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/adityacp/online_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adityacp/online_test/statuses/{sha}","languages_url":"https://api.github.com/repos/adityacp/online_test/languages","stargazers_url":"https://api.github.com/repos/adityacp/online_test/stargazers","contributors_url":"https://api.github.com/repos/adityacp/online_test/contributors","subscribers_url":"https://api.github.com/repos/adityacp/online_test/subscribers","subscription_url":"https://api.github.com/repos/adityacp/online_test/subscription","commits_url":"https://api.github.com/repos/adityacp/online_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/adityacp/online_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/adityacp/online_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/adityacp/online_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/adityacp/online_test/contents/{+path}","compare_url":"https://api.github.com/repos/adityacp/online_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adityacp/online_test/merges","archive_url":"https://api.github.com/repos/adityacp/online_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adityacp/online_test/downloads","issues_url":"https://api.github.com/repos/adityacp/online_test/issues{/number}","pulls_url":"https://api.github.com/repos/adityacp/online_test/pulls{/number}","milestones_url":"https://api.github.com/repos/adityacp/online_test/milestones{/number}","notifications_url":"https://api.github.com/repos/adityacp/online_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adityacp/online_test/labels{/name}","releases_url":"https://api.github.com/repos/adityacp/online_test/releases{/id}","deployments_url":"https://api.github.com/repos/adityacp/online_test/deployments","created_at":"2016-05-05T17:36:03Z","updated_at":"2016-05-05T17:36:04Z","pushed_at":"2016-07-27T18:43:50Z","git_url":"git://github.com/adityacp/online_test.git","ssh_url":"git@github.com:adityacp/online_test.git","clone_url":"https://github.com/adityacp/online_test.git","svn_url":"https://github.com/adityacp/online_test","homepage":"http://fossee.in","size":4950,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FOSSEE:master","ref":"master","sha":"73552024136f906f2af0c5f2737216f2db1310e9","user":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"repo":{"id":2734092,"name":"online_test","full_name":"FOSSEE/online_test","owner":{"login":"FOSSEE","id":703487,"avatar_url":"https://avatars.githubusercontent.com/u/703487?v=3","gravatar_id":"","url":"https://api.github.com/users/FOSSEE","html_url":"https://github.com/FOSSEE","followers_url":"https://api.github.com/users/FOSSEE/followers","following_url":"https://api.github.com/users/FOSSEE/following{/other_user}","gists_url":"https://api.github.com/users/FOSSEE/gists{/gist_id}","starred_url":"https://api.github.com/users/FOSSEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOSSEE/subscriptions","organizations_url":"https://api.github.com/users/FOSSEE/orgs","repos_url":"https://api.github.com/users/FOSSEE/repos","events_url":"https://api.github.com/users/FOSSEE/events{/privacy}","received_events_url":"https://api.github.com/users/FOSSEE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FOSSEE/online_test","description":"Online quiz/exam taking application. ","fork":false,"url":"https://api.github.com/repos/FOSSEE/online_test","forks_url":"https://api.github.com/repos/FOSSEE/online_test/forks","keys_url":"https://api.github.com/repos/FOSSEE/online_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FOSSEE/online_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FOSSEE/online_test/teams","hooks_url":"https://api.github.com/repos/FOSSEE/online_test/hooks","issue_events_url":"https://api.github.com/repos/FOSSEE/online_test/issues/events{/number}","events_url":"https://api.github.com/repos/FOSSEE/online_test/events","assignees_url":"https://api.github.com/repos/FOSSEE/online_test/assignees{/user}","branches_url":"https://api.github.com/repos/FOSSEE/online_test/branches{/branch}","tags_url":"https://api.github.com/repos/FOSSEE/online_test/tags","blobs_url":"https://api.github.com/repos/FOSSEE/online_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FOSSEE/online_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FOSSEE/online_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/FOSSEE/online_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FOSSEE/online_test/statuses/{sha}","languages_url":"https://api.github.com/repos/FOSSEE/online_test/languages","stargazers_url":"https://api.github.com/repos/FOSSEE/online_test/stargazers","contributors_url":"https://api.github.com/repos/FOSSEE/online_test/contributors","subscribers_url":"https://api.github.com/repos/FOSSEE/online_test/subscribers","subscription_url":"https://api.github.com/repos/FOSSEE/online_test/subscription","commits_url":"https://api.github.com/repos/FOSSEE/online_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/FOSSEE/online_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/FOSSEE/online_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/FOSSEE/online_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/FOSSEE/online_test/contents/{+path}","compare_url":"https://api.github.com/repos/FOSSEE/online_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FOSSEE/online_test/merges","archive_url":"https://api.github.com/repos/FOSSEE/online_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FOSSEE/online_test/downloads","issues_url":"https://api.github.com/repos/FOSSEE/online_test/issues{/number}","pulls_url":"https://api.github.com/repos/FOSSEE/online_test/pulls{/number}","milestones_url":"https://api.github.com/repos/FOSSEE/online_test/milestones{/number}","notifications_url":"https://api.github.com/repos/FOSSEE/online_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FOSSEE/online_test/labels{/name}","releases_url":"https://api.github.com/repos/FOSSEE/online_test/releases{/id}","deployments_url":"https://api.github.com/repos/FOSSEE/online_test/deployments","created_at":"2011-11-08T14:02:17Z","updated_at":"2016-07-14T03:41:27Z","pushed_at":"2016-07-27T18:43:50Z","git_url":"git://github.com/FOSSEE/online_test.git","ssh_url":"git@github.com:FOSSEE/online_test.git","clone_url":"https://github.com/FOSSEE/online_test.git","svn_url":"https://github.com/FOSSEE/online_test","homepage":"http://fossee.in","size":5230,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":13,"forks":28,"open_issues":13,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/113"},"html":{"href":"https://github.com/FOSSEE/online_test/pull/113"},"issue":{"href":"https://api.github.com/repos/FOSSEE/online_test/issues/113"},"comments":{"href":"https://api.github.com/repos/FOSSEE/online_test/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FOSSEE/online_test/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/FOSSEE/online_test/statuses/20d12113ac98f09a0c8a6331712b78b70022e469"}}}}
{"actor":{"display_login":"prathamesh920"}}