{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/24482243","id":24482243,"diff_hunk":"@@ -956,3 +1013,182 @@ def finance_unblock_ordering():\n     db.session.commit()\n     flash('Now users can order :)')\n     return redirect('day_summary')\n+\n+\n+@app.route('/add_daily_koziolek', methods=['GET', 'POST'])\n+@login.login_required\n+def add_daily_koziolek():\n+    \"\"\"\n+    Adds meal of a day from koziolek\n+    \"\"\"\n+    food = get_dania_dnia_from_pod_koziolek()\n+    for meal in food.values():\n+        new_meal = Food()\n+        if \"zupa\" in meal or \"Zupa\" in meal:\n+            new_meal.cost = 2\n+        else:\n+            new_meal.cost = 11\n+        new_meal.description = \"Danie dnia Koziołek: \"\n+        new_meal.description += meal\n+        new_meal.company = \"Pod Koziołkiem\"\n+        new_meal.o_type = \"daniednia\"\n+        new_meal.date_available_from = datetime.date.today()\n+        new_meal.date_available_to = datetime.date.today()\n+        db.session.add(new_meal)\n+    db.session.commit()\n+    flash('Danie dnia z Pod Koziołekim zotało dodane')\n+    return redirect('add_food')\n+\n+\n+@app.route('/add_week_tomas', methods=['GET', 'POST'])\n+@login.login_required\n+def get_week_from_tomas_view():\n+    \"\"\"\n+    Adds weak meals from Tomas ! use only on mondays !\n+    \"\"\"\n+    foods = get_week_from_tomas()\n+    for meal in foods['diet']:\n+        new_meal = Food()\n+        new_meal.cost = 12\n+        new_meal.description = meal\n+        new_meal.company = \"Tomas\"\n+        new_meal.o_type = \"tygodniowe\"\n+        new_meal.date_available_from = datetime.date.today()\n+        new_meal.date_available_to = \\\n+            datetime.date.today() + \\\n+            datetime.timedelta(days=4)","path":"src/lunch_app/views.py","position":190,"original_position":190,"commit_id":"4cb44f0fc4cec3c7666e8eef13f1069b34f083ef","original_commit_id":"4cb44f0fc4cec3c7666e8eef13f1069b34f083ef","user":{"login":"pdyba","id":9288974,"avatar_url":"https://avatars.githubusercontent.com/u/9288974?v=3","gravatar_id":"","url":"https://api.github.com/users/pdyba","html_url":"https://github.com/pdyba","followers_url":"https://api.github.com/users/pdyba/followers","following_url":"https://api.github.com/users/pdyba/following{/other_user}","gists_url":"https://api.github.com/users/pdyba/gists{/gist_id}","starred_url":"https://api.github.com/users/pdyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdyba/subscriptions","organizations_url":"https://api.github.com/users/pdyba/orgs","repos_url":"https://api.github.com/users/pdyba/repos","events_url":"https://api.github.com/users/pdyba/events{/privacy}","received_events_url":"https://api.github.com/users/pdyba/received_events","type":"User","site_admin":false},"body":"niestety nie sprawdziłem jeszcze raz","created_at":"2015-02-11T09:32:51Z","updated_at":"2015-02-11T09:32:51Z","html_url":"https://github.com/stxnext/lunch-app/pull/12#discussion_r24482243","pull_request_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/24482243"},"html":{"href":"https://github.com/stxnext/lunch-app/pull/12#discussion_r24482243"},"pull_request":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext/lunch-app/pulls/12","id":29075017,"html_url":"https://github.com/stxnext/lunch-app/pull/12","diff_url":"https://github.com/stxnext/lunch-app/pull/12.diff","patch_url":"https://github.com/stxnext/lunch-app/pull/12.patch","issue_url":"https://api.github.com/repos/stxnext/lunch-app/issues/12","number":12,"state":"open","locked":false,"title":"31 32 37 38 tasks","user":{"login":"pdyba","id":9288974,"avatar_url":"https://avatars.githubusercontent.com/u/9288974?v=3","gravatar_id":"","url":"https://api.github.com/users/pdyba","html_url":"https://github.com/pdyba","followers_url":"https://api.github.com/users/pdyba/followers","following_url":"https://api.github.com/users/pdyba/following{/other_user}","gists_url":"https://api.github.com/users/pdyba/gists{/gist_id}","starred_url":"https://api.github.com/users/pdyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdyba/subscriptions","organizations_url":"https://api.github.com/users/pdyba/orgs","repos_url":"https://api.github.com/users/pdyba/repos","events_url":"https://api.github.com/users/pdyba/events{/privacy}","received_events_url":"https://api.github.com/users/pdyba/received_events","type":"User","site_admin":false},"body":"31. automatyczne wrzucenia dania dnia z strony www koziolka\r\n32 secret pizza module\r\n37. wrzucenia dan ze strony Tomasa\r\n38. identyczne dana powinny się grupować (zliczać, albo chociaż układać alfabetycznie, wtedy sama policzę)","created_at":"2015-02-11T08:45:22Z","updated_at":"2015-02-11T09:32:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0324f37d9e23a1d4df73f64186a466abd0014870","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/12/commits","review_comments_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/12/comments","review_comment_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/{number}","comments_url":"https://api.github.com/repos/stxnext/lunch-app/issues/12/comments","statuses_url":"https://api.github.com/repos/stxnext/lunch-app/statuses/4cb44f0fc4cec3c7666e8eef13f1069b34f083ef","head":{"label":"pdyba:31_32_37_38_tasks","ref":"31_32_37_38_tasks","sha":"4cb44f0fc4cec3c7666e8eef13f1069b34f083ef","user":{"login":"pdyba","id":9288974,"avatar_url":"https://avatars.githubusercontent.com/u/9288974?v=3","gravatar_id":"","url":"https://api.github.com/users/pdyba","html_url":"https://github.com/pdyba","followers_url":"https://api.github.com/users/pdyba/followers","following_url":"https://api.github.com/users/pdyba/following{/other_user}","gists_url":"https://api.github.com/users/pdyba/gists{/gist_id}","starred_url":"https://api.github.com/users/pdyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdyba/subscriptions","organizations_url":"https://api.github.com/users/pdyba/orgs","repos_url":"https://api.github.com/users/pdyba/repos","events_url":"https://api.github.com/users/pdyba/events{/privacy}","received_events_url":"https://api.github.com/users/pdyba/received_events","type":"User","site_admin":false},"repo":{"id":29301538,"name":"lunch-app","full_name":"pdyba/lunch-app","owner":{"login":"pdyba","id":9288974,"avatar_url":"https://avatars.githubusercontent.com/u/9288974?v=3","gravatar_id":"","url":"https://api.github.com/users/pdyba","html_url":"https://github.com/pdyba","followers_url":"https://api.github.com/users/pdyba/followers","following_url":"https://api.github.com/users/pdyba/following{/other_user}","gists_url":"https://api.github.com/users/pdyba/gists{/gist_id}","starred_url":"https://api.github.com/users/pdyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdyba/subscriptions","organizations_url":"https://api.github.com/users/pdyba/orgs","repos_url":"https://api.github.com/users/pdyba/repos","events_url":"https://api.github.com/users/pdyba/events{/privacy}","received_events_url":"https://api.github.com/users/pdyba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pdyba/lunch-app","description":"Aplikacja do zamawiania lunchy","fork":true,"url":"https://api.github.com/repos/pdyba/lunch-app","forks_url":"https://api.github.com/repos/pdyba/lunch-app/forks","keys_url":"https://api.github.com/repos/pdyba/lunch-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pdyba/lunch-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pdyba/lunch-app/teams","hooks_url":"https://api.github.com/repos/pdyba/lunch-app/hooks","issue_events_url":"https://api.github.com/repos/pdyba/lunch-app/issues/events{/number}","events_url":"https://api.github.com/repos/pdyba/lunch-app/events","assignees_url":"https://api.github.com/repos/pdyba/lunch-app/assignees{/user}","branches_url":"https://api.github.com/repos/pdyba/lunch-app/branches{/branch}","tags_url":"https://api.github.com/repos/pdyba/lunch-app/tags","blobs_url":"https://api.github.com/repos/pdyba/lunch-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pdyba/lunch-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pdyba/lunch-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/pdyba/lunch-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pdyba/lunch-app/statuses/{sha}","languages_url":"https://api.github.com/repos/pdyba/lunch-app/languages","stargazers_url":"https://api.github.com/repos/pdyba/lunch-app/stargazers","contributors_url":"https://api.github.com/repos/pdyba/lunch-app/contributors","subscribers_url":"https://api.github.com/repos/pdyba/lunch-app/subscribers","subscription_url":"https://api.github.com/repos/pdyba/lunch-app/subscription","commits_url":"https://api.github.com/repos/pdyba/lunch-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/pdyba/lunch-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/pdyba/lunch-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/pdyba/lunch-app/issues/comments/{number}","contents_url":"https://api.github.com/repos/pdyba/lunch-app/contents/{+path}","compare_url":"https://api.github.com/repos/pdyba/lunch-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pdyba/lunch-app/merges","archive_url":"https://api.github.com/repos/pdyba/lunch-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pdyba/lunch-app/downloads","issues_url":"https://api.github.com/repos/pdyba/lunch-app/issues{/number}","pulls_url":"https://api.github.com/repos/pdyba/lunch-app/pulls{/number}","milestones_url":"https://api.github.com/repos/pdyba/lunch-app/milestones{/number}","notifications_url":"https://api.github.com/repos/pdyba/lunch-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pdyba/lunch-app/labels{/name}","releases_url":"https://api.github.com/repos/pdyba/lunch-app/releases{/id}","created_at":"2015-01-15T14:40:36Z","updated_at":"2015-02-11T08:02:05Z","pushed_at":"2015-02-11T08:43:51Z","git_url":"git://github.com/pdyba/lunch-app.git","ssh_url":"git@github.com:pdyba/lunch-app.git","clone_url":"https://github.com/pdyba/lunch-app.git","svn_url":"https://github.com/pdyba/lunch-app","homepage":null,"size":748,"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":"stxnext:master","ref":"master","sha":"5c2d1b0355fa9501a6a7cbabced2da56305fe501","user":{"login":"stxnext","id":1661949,"avatar_url":"https://avatars.githubusercontent.com/u/1661949?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext","html_url":"https://github.com/stxnext","followers_url":"https://api.github.com/users/stxnext/followers","following_url":"https://api.github.com/users/stxnext/following{/other_user}","gists_url":"https://api.github.com/users/stxnext/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext/subscriptions","organizations_url":"https://api.github.com/users/stxnext/orgs","repos_url":"https://api.github.com/users/stxnext/repos","events_url":"https://api.github.com/users/stxnext/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext/received_events","type":"Organization","site_admin":false},"repo":{"id":29291687,"name":"lunch-app","full_name":"stxnext/lunch-app","owner":{"login":"stxnext","id":1661949,"avatar_url":"https://avatars.githubusercontent.com/u/1661949?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext","html_url":"https://github.com/stxnext","followers_url":"https://api.github.com/users/stxnext/followers","following_url":"https://api.github.com/users/stxnext/following{/other_user}","gists_url":"https://api.github.com/users/stxnext/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext/subscriptions","organizations_url":"https://api.github.com/users/stxnext/orgs","repos_url":"https://api.github.com/users/stxnext/repos","events_url":"https://api.github.com/users/stxnext/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext/lunch-app","description":"Aplikacja do zamawiania lunchy","fork":false,"url":"https://api.github.com/repos/stxnext/lunch-app","forks_url":"https://api.github.com/repos/stxnext/lunch-app/forks","keys_url":"https://api.github.com/repos/stxnext/lunch-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext/lunch-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext/lunch-app/teams","hooks_url":"https://api.github.com/repos/stxnext/lunch-app/hooks","issue_events_url":"https://api.github.com/repos/stxnext/lunch-app/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext/lunch-app/events","assignees_url":"https://api.github.com/repos/stxnext/lunch-app/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext/lunch-app/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext/lunch-app/tags","blobs_url":"https://api.github.com/repos/stxnext/lunch-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext/lunch-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext/lunch-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext/lunch-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext/lunch-app/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext/lunch-app/languages","stargazers_url":"https://api.github.com/repos/stxnext/lunch-app/stargazers","contributors_url":"https://api.github.com/repos/stxnext/lunch-app/contributors","subscribers_url":"https://api.github.com/repos/stxnext/lunch-app/subscribers","subscription_url":"https://api.github.com/repos/stxnext/lunch-app/subscription","commits_url":"https://api.github.com/repos/stxnext/lunch-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext/lunch-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext/lunch-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext/lunch-app/issues/comments/{number}","contents_url":"https://api.github.com/repos/stxnext/lunch-app/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext/lunch-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext/lunch-app/merges","archive_url":"https://api.github.com/repos/stxnext/lunch-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext/lunch-app/downloads","issues_url":"https://api.github.com/repos/stxnext/lunch-app/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext/lunch-app/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext/lunch-app/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext/lunch-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext/lunch-app/labels{/name}","releases_url":"https://api.github.com/repos/stxnext/lunch-app/releases{/id}","created_at":"2015-01-15T10:09:20Z","updated_at":"2015-02-10T16:35:22Z","pushed_at":"2015-02-10T16:35:22Z","git_url":"git://github.com/stxnext/lunch-app.git","ssh_url":"git@github.com:stxnext/lunch-app.git","clone_url":"https://github.com/stxnext/lunch-app.git","svn_url":"https://github.com/stxnext/lunch-app","homepage":null,"size":709,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/12"},"html":{"href":"https://github.com/stxnext/lunch-app/pull/12"},"issue":{"href":"https://api.github.com/repos/stxnext/lunch-app/issues/12"},"comments":{"href":"https://api.github.com/repos/stxnext/lunch-app/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext/lunch-app/statuses/4cb44f0fc4cec3c7666e8eef13f1069b34f083ef"}}}}