{"action":"created","comment":{"url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/comments/22849399","id":22849399,"diff_hunk":"@@ -0,0 +1,170 @@\n+#!/usr/bin/env python\n+\n+import argparse\n+from genologics.lims import *\n+from genologics.lims_utils import *\n+from genologics.config import BASEURI, USERNAME, PASSWORD\n+import process_categories as pc \n+from datetime import datetime, timedelta\n+import statusdb.db as sdb\n+\n+def setupLog(args):","path":"scilifelab/lims_utils/workset_upload.py","position":11,"original_position":11,"commit_id":"5da3e477dac4759644fe7bffce2f42bb53ce6126","original_commit_id":"5da3e477dac4759644fe7bffce2f42bb53ce6126","user":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"body":"I do : args.logfile","created_at":"2015-01-13T08:52:09Z","updated_at":"2015-01-13T08:52:09Z","html_url":"https://github.com/SciLifeLab/scilifelab/pull/460#discussion_r22849399","pull_request_url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460","_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/comments/22849399"},"html":{"href":"https://github.com/SciLifeLab/scilifelab/pull/460#discussion_r22849399"},"pull_request":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460"}}},"pull_request":{"url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460","id":27205214,"html_url":"https://github.com/SciLifeLab/scilifelab/pull/460","diff_url":"https://github.com/SciLifeLab/scilifelab/pull/460.diff","patch_url":"https://github.com/SciLifeLab/scilifelab/pull/460.patch","issue_url":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/460","number":460,"state":"open","locked":false,"title":"added workset feeding script","user":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"body":"will be used to upload the worksets to statusdb","created_at":"2015-01-12T16:16:01Z","updated_at":"2015-01-13T08:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"210d7b20470dd411366a92f68374be8ad0a5ce38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460/commits","review_comments_url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460/comments","review_comment_url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/460/comments","statuses_url":"https://api.github.com/repos/SciLifeLab/scilifelab/statuses/5da3e477dac4759644fe7bffce2f42bb53ce6126","head":{"label":"Galithil:master","ref":"master","sha":"5da3e477dac4759644fe7bffce2f42bb53ce6126","user":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"repo":{"id":20176807,"name":"scilifelab","full_name":"Galithil/scilifelab","owner":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Galithil/scilifelab","description":"Misc code snippets for Science For Life Laboratory","fork":true,"url":"https://api.github.com/repos/Galithil/scilifelab","forks_url":"https://api.github.com/repos/Galithil/scilifelab/forks","keys_url":"https://api.github.com/repos/Galithil/scilifelab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Galithil/scilifelab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Galithil/scilifelab/teams","hooks_url":"https://api.github.com/repos/Galithil/scilifelab/hooks","issue_events_url":"https://api.github.com/repos/Galithil/scilifelab/issues/events{/number}","events_url":"https://api.github.com/repos/Galithil/scilifelab/events","assignees_url":"https://api.github.com/repos/Galithil/scilifelab/assignees{/user}","branches_url":"https://api.github.com/repos/Galithil/scilifelab/branches{/branch}","tags_url":"https://api.github.com/repos/Galithil/scilifelab/tags","blobs_url":"https://api.github.com/repos/Galithil/scilifelab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Galithil/scilifelab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Galithil/scilifelab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Galithil/scilifelab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Galithil/scilifelab/statuses/{sha}","languages_url":"https://api.github.com/repos/Galithil/scilifelab/languages","stargazers_url":"https://api.github.com/repos/Galithil/scilifelab/stargazers","contributors_url":"https://api.github.com/repos/Galithil/scilifelab/contributors","subscribers_url":"https://api.github.com/repos/Galithil/scilifelab/subscribers","subscription_url":"https://api.github.com/repos/Galithil/scilifelab/subscription","commits_url":"https://api.github.com/repos/Galithil/scilifelab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Galithil/scilifelab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Galithil/scilifelab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Galithil/scilifelab/issues/comments/{number}","contents_url":"https://api.github.com/repos/Galithil/scilifelab/contents/{+path}","compare_url":"https://api.github.com/repos/Galithil/scilifelab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Galithil/scilifelab/merges","archive_url":"https://api.github.com/repos/Galithil/scilifelab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Galithil/scilifelab/downloads","issues_url":"https://api.github.com/repos/Galithil/scilifelab/issues{/number}","pulls_url":"https://api.github.com/repos/Galithil/scilifelab/pulls{/number}","milestones_url":"https://api.github.com/repos/Galithil/scilifelab/milestones{/number}","notifications_url":"https://api.github.com/repos/Galithil/scilifelab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Galithil/scilifelab/labels{/name}","releases_url":"https://api.github.com/repos/Galithil/scilifelab/releases{/id}","created_at":"2014-05-26T06:52:55Z","updated_at":"2015-01-12T16:14:03Z","pushed_at":"2015-01-12T16:14:03Z","git_url":"git://github.com/Galithil/scilifelab.git","ssh_url":"git@github.com:Galithil/scilifelab.git","clone_url":"https://github.com/Galithil/scilifelab.git","svn_url":"https://github.com/Galithil/scilifelab","homepage":"http://www.scilifelab.se","size":10241,"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":"SciLifeLab:master","ref":"master","sha":"020be774d4d0bc24d58de3568216406685504745","user":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"repo":{"id":4002536,"name":"scilifelab","full_name":"SciLifeLab/scilifelab","owner":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciLifeLab/scilifelab","description":"Misc code snippets for Science For Life Laboratory","fork":true,"url":"https://api.github.com/repos/SciLifeLab/scilifelab","forks_url":"https://api.github.com/repos/SciLifeLab/scilifelab/forks","keys_url":"https://api.github.com/repos/SciLifeLab/scilifelab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciLifeLab/scilifelab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciLifeLab/scilifelab/teams","hooks_url":"https://api.github.com/repos/SciLifeLab/scilifelab/hooks","issue_events_url":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/events{/number}","events_url":"https://api.github.com/repos/SciLifeLab/scilifelab/events","assignees_url":"https://api.github.com/repos/SciLifeLab/scilifelab/assignees{/user}","branches_url":"https://api.github.com/repos/SciLifeLab/scilifelab/branches{/branch}","tags_url":"https://api.github.com/repos/SciLifeLab/scilifelab/tags","blobs_url":"https://api.github.com/repos/SciLifeLab/scilifelab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciLifeLab/scilifelab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciLifeLab/scilifelab/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciLifeLab/scilifelab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciLifeLab/scilifelab/statuses/{sha}","languages_url":"https://api.github.com/repos/SciLifeLab/scilifelab/languages","stargazers_url":"https://api.github.com/repos/SciLifeLab/scilifelab/stargazers","contributors_url":"https://api.github.com/repos/SciLifeLab/scilifelab/contributors","subscribers_url":"https://api.github.com/repos/SciLifeLab/scilifelab/subscribers","subscription_url":"https://api.github.com/repos/SciLifeLab/scilifelab/subscription","commits_url":"https://api.github.com/repos/SciLifeLab/scilifelab/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciLifeLab/scilifelab/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciLifeLab/scilifelab/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/comments/{number}","contents_url":"https://api.github.com/repos/SciLifeLab/scilifelab/contents/{+path}","compare_url":"https://api.github.com/repos/SciLifeLab/scilifelab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciLifeLab/scilifelab/merges","archive_url":"https://api.github.com/repos/SciLifeLab/scilifelab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciLifeLab/scilifelab/downloads","issues_url":"https://api.github.com/repos/SciLifeLab/scilifelab/issues{/number}","pulls_url":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls{/number}","milestones_url":"https://api.github.com/repos/SciLifeLab/scilifelab/milestones{/number}","notifications_url":"https://api.github.com/repos/SciLifeLab/scilifelab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciLifeLab/scilifelab/labels{/name}","releases_url":"https://api.github.com/repos/SciLifeLab/scilifelab/releases{/id}","created_at":"2012-04-12T07:58:18Z","updated_at":"2015-01-07T13:32:04Z","pushed_at":"2015-01-07T13:32:03Z","git_url":"git://github.com/SciLifeLab/scilifelab.git","ssh_url":"git@github.com:SciLifeLab/scilifelab.git","clone_url":"https://github.com/SciLifeLab/scilifelab.git","svn_url":"https://github.com/SciLifeLab/scilifelab","homepage":"http://www.scilifelab.se","size":11169,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":11,"forks":16,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460"},"html":{"href":"https://github.com/SciLifeLab/scilifelab/pull/460"},"issue":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/460"},"comments":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/SciLifeLab/scilifelab/statuses/5da3e477dac4759644fe7bffce2f42bb53ce6126"}}}}