{"action":"created","comment":{"url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/comments/217920763","pull_request_review_id":155751098,"id":217920763,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzkyMDc2Mw==","diff_hunk":"@@ -1,51 +1,184 @@\n-from django.db import models\n+from django.db import models, transaction\n+from django.utils.crypto import get_random_string\n from django.contrib.auth.models import User\n-from django.db import transaction\n+import uuid\n+import datetime\n+from django.shortcuts import render_to_response, get_object_or_404, render\n+\n+\n+\n+\"\"\"\n+POTITION_TYPE_CHOICES= (\n+    ('pHormand/pHorquinde','pHormand/pHorquinde'),\n+    ('PR-sjaepH','PR-sjaepH'),\n+    ('Sectreteuse','Sectreteuse'),\n+    ('Kasserer','Kasserer'),\n+    ('pHaestsjaepH','pHaestsjaepH'),\n+    ('IndustrisjaepH','IndustrisjaepH'),\n+    ('ChemicalsjaepH','ChemicalsjaepH'),\n+    ('Kjellerstyret','Kjellerstyret'),\n+    ('Assisterende pHaestsjef','Assisterende pHaestsjef'),\n+    ('pHaestslave','pHaestslave'),\n+    ('Redacteur','Redacteur'),\n+    ('Administrasjonprotogé/sjaepH', 'Administrasjonprotogé/sjaepH'),\n+    ('Utenrikskomiteen','Utenrikskomiteen'),\n+    ('Wettrekomiteen','Wettrekomiteen'),\n+    ('Arrkomiteen','Arrkomiteen'),\n+    ('Sportskomiteen','Sportskomiteen'),\n+    ('Arkivar','Arkivar'),\n+    ('Fadderkomiteen','Fadderkomiteen'),\n+    ('PTV: (ProgramsTillitsValgt for MTKJ)','PTV: (ProgramsTillitsValgt for MTKJ)'),\n+    ('Webkomiteen','Webkomiteen')\n+)\"\"\"\n+\n+\"\"\"\n+---------------READ ME-----------------\n+- I appen er elections delt inn i to deler, en admin del og en bruker del\n+- I admindelen vil alt av logikk med stemmetelling og legge til kandidater skjer\n+- I brukerdelen vil hver bruker kunne stemme på en kandidat når admin gir dem tilgang \n+- Valget går ut på at man lager et objekt av Election, det vil si at kun et objekt lages for et medlemsmøte emd valg\n+- Det legges til unike Position objekter fra lista over som knyttes til election\n+- Det legges til Candidates objekter knyttet hvert position objekt, disse er hentet fra Django sin User\n+- For hver position vil det lages nye Candidates-objekter,  \n+- Dvs: Hvis Joachim stiller til to verv vil User \"Joachim\" hentes to ganger fra User og danne to Candidates-objekter som er knyttet til hvert sitt position-objekt\n+- For logikken bak telling av stemmer, se admin_end_voting i views\n+- Når admin starter valget vil current_position_is_open settes til True og man kan da stemme på en bestemt position\n+- Når admin slutter valget vil vinnere med flest stemmer lagres i winners og man kan da gå videre til neste valg\n+---------------------------------------\n+\"\"\"\n \n-class Election(models.Model):\n-    name = models.CharField(max_length = 20)\n-    date = models.DateField(auto_now=True)\n+\n+class Candidates(models.Model):\n+    candidate_user = models.ForeignKey(User, related_name=\"candidate\")\n+    votes = models.IntegerField(verbose_name=\"Antall stemmer\", blank=True, default=0)\n+    winner = models.BooleanField(default=False)\n+\n+    def __str__(self):\n+        return self.candidate_user.first_name + \" \" + self.candidate_user.last_name\n \n \n class Position(models.Model):\n-    \"\"\"docstring for Position\"\"\"\n-    name = models.CharField(max_length = 20)\n-    seats = models.SmallIntegerField(verbose_name=\"Number of seats to be selected\")\n-    active = models.BooleanField(verbose_name=\"Active position\")\n+    position_name = models.CharField(max_length=100, verbose_name=\"Navn på verv\")\n+    spots = models.IntegerField(verbose_name=\"Antall plasser\")\n+    candidates = models.ManyToManyField(Candidates, blank=True, related_name=\"positions\")\n+    total_votes = models.IntegerField(default=0)\n+    voting_done = models.BooleanField(default=False)\n+    winners = models.ManyToManyField(Candidates, blank=True, related_name=\"winners\", default=None)\n+\n+    def delete_position(self, *args, **kwargs):\n+        try:  # prøver å delete candidater under en posisjon\n+            election = kwargs['election']\n+            candidates_objects = self.candidates.all()\n+            self.candidates.remove(candidates_objects)\n+            candidates_objects.delete()\n+            self.save()\n+            election.positions.remove(self)\n+            self.delete()\n+            election.save()\n+        except:  # catcher hvis posisjonen ikke har candidater\n+            election.positions.remove(self)\n+            self.delete()\n+            election.save()\n \n     def __str__(self):\n-        return self.name\n+        return self.position_name\n \n-    def activate(self):\n-        self.active = True\n+    def get_current_position_winners(self):\n+        all_winners = dict()\n+        all_results = dict()\n+        for candidates in self.candidates.all():\n+            all_results[candidates] = candidates.votes\n+        for winner_spots in range(self.spots):\n+            most_votes = 0\n+            winner = None\n+            winner_votes = 0\n+            for result in all_results:\n+                if all_results[result] >= most_votes:\n+                    most_votes = all_results[result]\n+                    winner = result\n+                    winner_votes = all_results[result]\n+            all_winners[winner] = winner_votes\n \n-    def deactivate(self):\n-        self.active = False\n+            found_winner = False\n+            for candidate in all_results:\n+                if all_results[candidate] == winner_votes:\n+                    all_winners[candidate] = all_results[candidate]\n+                    if not found_winner:\n+                        # Når vi finner bestCandidate\n+                        found_winner = True\n+                    all_results[candidate] = -1\n+        self.winners = all_winners\n \n \n-class Ticket(models.Model):\n-    \"\"\"docstring for Ticket\"\"\"\n-    secret = models.CharField(max_length = 12, unique = True)\n-    #objects = TicketManager()\n \n-class Candidate(models.Model):\n-    \"\"\"docstring for Candidate\"\"\"\n-    postition = models.ForeignKey(Position, on_delete=models.CASCADE)\n-    users = models.ManyToManyField(User)\n-    votes = models.ManyToManyField(Ticket, through = 'Vote')\n+class Election(models.Model):\n+    is_open = models.BooleanField(verbose_name=\"Er åpent\", default=False) #Generelt for hele valget\n+    positions = models.ManyToManyField(Position, blank=True, related_name='election')\n+    current_position = models.ForeignKey(Position, blank=True, null=True, related_name='current_election')\n+    current_position_is_open = models.BooleanField(verbose_name=\"Det er åpent for stemming\", default=False)  #For delvalget for hver position\n+    date = models.DateField(auto_now_add=True, blank=True)\n \n     def __str__(self):\n-        users = self.users.all()\n-        usernames = [user.username for user in users]\n-        return ', '.join(usernames)\n+        return '{}: {}'.format(self.id, self.date)\n+\n+    def start_current_election(self,*args,**kwargs):\n+        current_position = get_object_or_404(Position, pk=int(args[0]))  # finner posisjonen vi skal votere om\n+        candidates = current_position.candidates.all()\n+        users = User.objects.all()\n+        for user in users:\n+            user.profile.voted = False\n+            user.profile.save()\n+        if not self.current_position_is_open:  # forhindrer at vi ikke resetter votes ved refresh page\n+            self.current_position = current_position\n+            self.current_position.total_votes = 0\n+            self.current_position_is_open = True\n+            # Legge til forhndsstemmene i totale stemmer\n+            for candidate in candidates:\n+                self.current_position.total_votes += candidate.votes\n+            self.save()\n+            self.current_position.save()\n+\n+\n+    def end_election(self):\n+        if self.is_open:\n+            self.is_open = False\n+            self.date = datetime.date.today()\n+            self.save()\n+\n+\n+    def vote(self,*args,**kwargs):\n+        voted = False\n+        candidates = self.current_position.candidates.all()\n+        form = args[1]","path":"chemie/elections/models.py","position":178,"original_position":178,"commit_id":"a56caa54768989a56482be986c5a3b39518bfe13","original_commit_id":"3875b939a6bc1abbf2bd897baea4e8fcc1e9073a","user":{"login":"hambro","id":8371798,"node_id":"MDQ6VXNlcjgzNzE3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8371798?v=4","gravatar_id":"","url":"https://api.github.com/users/hambro","html_url":"https://github.com/hambro","followers_url":"https://api.github.com/users/hambro/followers","following_url":"https://api.github.com/users/hambro/following{/other_user}","gists_url":"https://api.github.com/users/hambro/gists{/gist_id}","starred_url":"https://api.github.com/users/hambro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hambro/subscriptions","organizations_url":"https://api.github.com/users/hambro/orgs","repos_url":"https://api.github.com/users/hambro/repos","events_url":"https://api.github.com/users/hambro/events{/privacy}","received_events_url":"https://api.github.com/users/hambro/received_events","type":"User","site_admin":false},"body":"Mer oversiktlig om man ikke bruker args men kwargs. ","created_at":"2018-09-16T16:52:37Z","updated_at":"2018-09-16T16:54:06Z","html_url":"https://github.com/HoiskolensChemikerforening/website/pull/93#discussion_r217920763","pull_request_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/comments/217920763"},"html":{"href":"https://github.com/HoiskolensChemikerforening/website/pull/93#discussion_r217920763"},"pull_request":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93","id":177239595,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc3MjM5NTk1","html_url":"https://github.com/HoiskolensChemikerforening/website/pull/93","diff_url":"https://github.com/HoiskolensChemikerforening/website/pull/93.diff","patch_url":"https://github.com/HoiskolensChemikerforening/website/pull/93.patch","issue_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/93","number":93,"state":"open","locked":false,"title":"[WIP] Election","user":{"login":"hambro","id":8371798,"node_id":"MDQ6VXNlcjgzNzE3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8371798?v=4","gravatar_id":"","url":"https://api.github.com/users/hambro","html_url":"https://github.com/hambro","followers_url":"https://api.github.com/users/hambro/followers","following_url":"https://api.github.com/users/hambro/following{/other_user}","gists_url":"https://api.github.com/users/hambro/gists{/gist_id}","starred_url":"https://api.github.com/users/hambro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hambro/subscriptions","organizations_url":"https://api.github.com/users/hambro/orgs","repos_url":"https://api.github.com/users/hambro/repos","events_url":"https://api.github.com/users/hambro/events{/privacy}","received_events_url":"https://api.github.com/users/hambro/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-24T14:18:50Z","updated_at":"2018-09-16T16:54:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69bc24394e87380869e0bf8d8ecc50ce67f4ac93","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93/commits","review_comments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93/comments","review_comment_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/93/comments","statuses_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/statuses/a56caa54768989a56482be986c5a3b39518bfe13","head":{"label":"HoiskolensChemikerforening:election","ref":"election","sha":"a56caa54768989a56482be986c5a3b39518bfe13","user":{"login":"HoiskolensChemikerforening","id":26791706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzkxNzA2","avatar_url":"https://avatars2.githubusercontent.com/u/26791706?v=4","gravatar_id":"","url":"https://api.github.com/users/HoiskolensChemikerforening","html_url":"https://github.com/HoiskolensChemikerforening","followers_url":"https://api.github.com/users/HoiskolensChemikerforening/followers","following_url":"https://api.github.com/users/HoiskolensChemikerforening/following{/other_user}","gists_url":"https://api.github.com/users/HoiskolensChemikerforening/gists{/gist_id}","starred_url":"https://api.github.com/users/HoiskolensChemikerforening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoiskolensChemikerforening/subscriptions","organizations_url":"https://api.github.com/users/HoiskolensChemikerforening/orgs","repos_url":"https://api.github.com/users/HoiskolensChemikerforening/repos","events_url":"https://api.github.com/users/HoiskolensChemikerforening/events{/privacy}","received_events_url":"https://api.github.com/users/HoiskolensChemikerforening/received_events","type":"Organization","site_admin":false},"repo":{"id":43165576,"node_id":"MDEwOlJlcG9zaXRvcnk0MzE2NTU3Ng==","name":"website","full_name":"HoiskolensChemikerforening/website","private":false,"owner":{"login":"HoiskolensChemikerforening","id":26791706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzkxNzA2","avatar_url":"https://avatars2.githubusercontent.com/u/26791706?v=4","gravatar_id":"","url":"https://api.github.com/users/HoiskolensChemikerforening","html_url":"https://github.com/HoiskolensChemikerforening","followers_url":"https://api.github.com/users/HoiskolensChemikerforening/followers","following_url":"https://api.github.com/users/HoiskolensChemikerforening/following{/other_user}","gists_url":"https://api.github.com/users/HoiskolensChemikerforening/gists{/gist_id}","starred_url":"https://api.github.com/users/HoiskolensChemikerforening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoiskolensChemikerforening/subscriptions","organizations_url":"https://api.github.com/users/HoiskolensChemikerforening/orgs","repos_url":"https://api.github.com/users/HoiskolensChemikerforening/repos","events_url":"https://api.github.com/users/HoiskolensChemikerforening/events{/privacy}","received_events_url":"https://api.github.com/users/HoiskolensChemikerforening/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HoiskolensChemikerforening/website","description":"Webpage for HC","fork":false,"url":"https://api.github.com/repos/HoiskolensChemikerforening/website","forks_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/forks","keys_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/teams","hooks_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/hooks","issue_events_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/events{/number}","events_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/events","assignees_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/assignees{/user}","branches_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/branches{/branch}","tags_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/tags","blobs_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/statuses/{sha}","languages_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/languages","stargazers_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/stargazers","contributors_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/contributors","subscribers_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/subscribers","subscription_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/subscription","commits_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/contents/{+path}","compare_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/merges","archive_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/downloads","issues_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues{/number}","pulls_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls{/number}","milestones_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/milestones{/number}","notifications_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/labels{/name}","releases_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/releases{/id}","deployments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/deployments","created_at":"2015-09-25T17:46:02Z","updated_at":"2018-09-16T14:36:54Z","pushed_at":"2018-09-16T16:53:07Z","git_url":"git://github.com/HoiskolensChemikerforening/website.git","ssh_url":"git@github.com:HoiskolensChemikerforening/website.git","clone_url":"https://github.com/HoiskolensChemikerforening/website.git","svn_url":"https://github.com/HoiskolensChemikerforening/website","homepage":"https://chemie.no","size":18207,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":1,"open_issues":34,"watchers":4,"default_branch":"master"}},"base":{"label":"HoiskolensChemikerforening:master","ref":"master","sha":"0286e005312f28226d8a042273a4f2baf12d7b1f","user":{"login":"HoiskolensChemikerforening","id":26791706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzkxNzA2","avatar_url":"https://avatars2.githubusercontent.com/u/26791706?v=4","gravatar_id":"","url":"https://api.github.com/users/HoiskolensChemikerforening","html_url":"https://github.com/HoiskolensChemikerforening","followers_url":"https://api.github.com/users/HoiskolensChemikerforening/followers","following_url":"https://api.github.com/users/HoiskolensChemikerforening/following{/other_user}","gists_url":"https://api.github.com/users/HoiskolensChemikerforening/gists{/gist_id}","starred_url":"https://api.github.com/users/HoiskolensChemikerforening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoiskolensChemikerforening/subscriptions","organizations_url":"https://api.github.com/users/HoiskolensChemikerforening/orgs","repos_url":"https://api.github.com/users/HoiskolensChemikerforening/repos","events_url":"https://api.github.com/users/HoiskolensChemikerforening/events{/privacy}","received_events_url":"https://api.github.com/users/HoiskolensChemikerforening/received_events","type":"Organization","site_admin":false},"repo":{"id":43165576,"node_id":"MDEwOlJlcG9zaXRvcnk0MzE2NTU3Ng==","name":"website","full_name":"HoiskolensChemikerforening/website","private":false,"owner":{"login":"HoiskolensChemikerforening","id":26791706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzkxNzA2","avatar_url":"https://avatars2.githubusercontent.com/u/26791706?v=4","gravatar_id":"","url":"https://api.github.com/users/HoiskolensChemikerforening","html_url":"https://github.com/HoiskolensChemikerforening","followers_url":"https://api.github.com/users/HoiskolensChemikerforening/followers","following_url":"https://api.github.com/users/HoiskolensChemikerforening/following{/other_user}","gists_url":"https://api.github.com/users/HoiskolensChemikerforening/gists{/gist_id}","starred_url":"https://api.github.com/users/HoiskolensChemikerforening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoiskolensChemikerforening/subscriptions","organizations_url":"https://api.github.com/users/HoiskolensChemikerforening/orgs","repos_url":"https://api.github.com/users/HoiskolensChemikerforening/repos","events_url":"https://api.github.com/users/HoiskolensChemikerforening/events{/privacy}","received_events_url":"https://api.github.com/users/HoiskolensChemikerforening/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HoiskolensChemikerforening/website","description":"Webpage for HC","fork":false,"url":"https://api.github.com/repos/HoiskolensChemikerforening/website","forks_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/forks","keys_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/teams","hooks_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/hooks","issue_events_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/events{/number}","events_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/events","assignees_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/assignees{/user}","branches_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/branches{/branch}","tags_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/tags","blobs_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/statuses/{sha}","languages_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/languages","stargazers_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/stargazers","contributors_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/contributors","subscribers_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/subscribers","subscription_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/subscription","commits_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/contents/{+path}","compare_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/merges","archive_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/downloads","issues_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues{/number}","pulls_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls{/number}","milestones_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/milestones{/number}","notifications_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/labels{/name}","releases_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/releases{/id}","deployments_url":"https://api.github.com/repos/HoiskolensChemikerforening/website/deployments","created_at":"2015-09-25T17:46:02Z","updated_at":"2018-09-16T14:36:54Z","pushed_at":"2018-09-16T16:53:07Z","git_url":"git://github.com/HoiskolensChemikerforening/website.git","ssh_url":"git@github.com:HoiskolensChemikerforening/website.git","clone_url":"https://github.com/HoiskolensChemikerforening/website.git","svn_url":"https://github.com/HoiskolensChemikerforening/website","homepage":"https://chemie.no","size":18207,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":1,"open_issues":34,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93"},"html":{"href":"https://github.com/HoiskolensChemikerforening/website/pull/93"},"issue":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/93"},"comments":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/HoiskolensChemikerforening/website/statuses/a56caa54768989a56482be986c5a3b39518bfe13"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hambro"}}