{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/24229731","id":24229731,"diff_hunk":"@@ -72,6 +83,27 @@ def create_order():\n     \"\"\"\n     Create new order page.\n     \"\"\"\n+    if not current_user.is_active():\n+        try:\n+            texts = MailText.query.get(1)\n+            try:\n+                msg = texts.blocked_user_text\n+            except AttributeError:\n+                msg = \"Sorry you didn't pay for last month :(\"\n+        except OperationalError:\n+            msg = \"Sorry you didn't pay for last month :(\"\n+        flash(msg)\n+        return redirect('overview')\n+\n+    ordering_is_allowed = OrderingInfo.query.get(1)\n+    if not ordering_is_allowed.is_allowed:\n+        texts = MailText.query.get(1)\n+        try:\n+            msg = texts.ordering_is_blocked_text\n+        except AttributeError:\n+            msg = \"Sorry You were too late Ordering is blocked now\"","path":"src/lunch_app/views.py","position":55,"original_position":55,"commit_id":"08db99557feea22a3efb3b1612e27765a6e2d7bb","original_commit_id":"08db99557feea22a3efb3b1612e27765a6e2d7bb","user":{"login":"sargo","id":155872,"avatar_url":"https://avatars.githubusercontent.com/u/155872?v=3","gravatar_id":"","url":"https://api.github.com/users/sargo","html_url":"https://github.com/sargo","followers_url":"https://api.github.com/users/sargo/followers","following_url":"https://api.github.com/users/sargo/following{/other_user}","gists_url":"https://api.github.com/users/sargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sargo/subscriptions","organizations_url":"https://api.github.com/users/sargo/orgs","repos_url":"https://api.github.com/users/sargo/repos","events_url":"https://api.github.com/users/sargo/events{/privacy}","received_events_url":"https://api.github.com/users/sargo/received_events","type":"User","site_admin":false},"body":"znów `You` i `Ordering` z dużej","created_at":"2015-02-06T09:20:25Z","updated_at":"2015-02-06T09:20:25Z","html_url":"https://github.com/stxnext/lunch-app/pull/11#discussion_r24229731","pull_request_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/comments/24229731"},"html":{"href":"https://github.com/stxnext/lunch-app/pull/11#discussion_r24229731"},"pull_request":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext/lunch-app/pulls/11","id":28657610,"html_url":"https://github.com/stxnext/lunch-app/pull/11","diff_url":"https://github.com/stxnext/lunch-app/pull/11.diff","patch_url":"https://github.com/stxnext/lunch-app/pull/11.patch","issue_url":"https://api.github.com/repos/stxnext/lunch-app/issues/11","number":11,"state":"open","locked":false,"title":"16 17 24 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":"completed tasks:\r\n\r\n16. ekran podsumowania ze  zamówieniem (do pokazania na ekranie w kuchni)\r\n17.\tmożliwość zablokowania danej osoby przez osobę uprawnioną, komunikat edytowalny (np. gdy dana osoba nie zapłaciła za poprzedni miesiąc)\r\n24. blokowanie mozliwosci zamawiania po wyznaocznej godzienie\r\n\r\nwith tests.\r\n\r\ntested, pep8'ed, pylint'ed (9.82)","created_at":"2015-02-04T17:29:57Z","updated_at":"2015-02-06T09:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51bf77535403d8a7c4d2976ee13c0c7faf5c7940","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/11/commits","review_comments_url":"https://api.github.com/repos/stxnext/lunch-app/pulls/11/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/11/comments","statuses_url":"https://api.github.com/repos/stxnext/lunch-app/statuses/08db99557feea22a3efb3b1612e27765a6e2d7bb","head":{"label":"pdyba:16_17_24_tasks","ref":"16_17_24_tasks","sha":"08db99557feea22a3efb3b1612e27765a6e2d7bb","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-04T15:26:33Z","pushed_at":"2015-02-06T07:55:31Z","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":"9cb29629c898a71d3c3aa32ce562444d02105f00","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-04T15:25:07Z","pushed_at":"2015-02-04T15:25:07Z","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/11"},"html":{"href":"https://github.com/stxnext/lunch-app/pull/11"},"issue":{"href":"https://api.github.com/repos/stxnext/lunch-app/issues/11"},"comments":{"href":"https://api.github.com/repos/stxnext/lunch-app/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext/lunch-app/pulls/11/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/11/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext/lunch-app/statuses/08db99557feea22a3efb3b1612e27765a6e2d7bb"}}}}