{"action":"created","issue":{"url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/16","repository_url":"https://api.github.com/repos/EmilZach/Sentence-Crusher","labels_url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/16/comments","events_url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/16/events","html_url":"https://github.com/EmilZach/Sentence-Crusher/issues/16","id":144123437,"number":16,"title":"Show data from server in browser--> level1.html, level2.html....","user":{"login":"Arxcis","id":3092618,"avatar_url":"https://avatars.githubusercontent.com/u/3092618?v=3","gravatar_id":"","url":"https://api.github.com/users/Arxcis","html_url":"https://github.com/Arxcis","followers_url":"https://api.github.com/users/Arxcis/followers","following_url":"https://api.github.com/users/Arxcis/following{/other_user}","gists_url":"https://api.github.com/users/Arxcis/gists{/gist_id}","starred_url":"https://api.github.com/users/Arxcis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arxcis/subscriptions","organizations_url":"https://api.github.com/users/Arxcis/orgs","repos_url":"https://api.github.com/users/Arxcis/repos","events_url":"https://api.github.com/users/Arxcis/events{/privacy}","received_events_url":"https://api.github.com/users/Arxcis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T00:56:01Z","updated_at":"2016-04-04T11:13:13Z","closed_at":null,"body":"Now that we have a robust server-side file-storage solution up and running, getting the file-data showing on a web-page should be the next step.\r\n\r\nWe already have data.html which can be accessed at \"127.0.0.1:50000/lastdata\" \r\n  This page only shows the data which is stored in memory by the data-object."},"comment":{"url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/comments/205248060","html_url":"https://github.com/EmilZach/Sentence-Crusher/issues/16#issuecomment-205248060","issue_url":"https://api.github.com/repos/EmilZach/Sentence-Crusher/issues/16","id":205248060,"user":{"login":"Arxcis","id":3092618,"avatar_url":"https://avatars.githubusercontent.com/u/3092618?v=3","gravatar_id":"","url":"https://api.github.com/users/Arxcis","html_url":"https://github.com/Arxcis","followers_url":"https://api.github.com/users/Arxcis/followers","following_url":"https://api.github.com/users/Arxcis/following{/other_user}","gists_url":"https://api.github.com/users/Arxcis/gists{/gist_id}","starred_url":"https://api.github.com/users/Arxcis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arxcis/subscriptions","organizations_url":"https://api.github.com/users/Arxcis/orgs","repos_url":"https://api.github.com/users/Arxcis/repos","events_url":"https://api.github.com/users/Arxcis/events{/privacy}","received_events_url":"https://api.github.com/users/Arxcis/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T11:13:13Z","updated_at":"2016-04-04T11:13:13Z","body":"UPDATE: \r\n   Håper noen prøver seg på dette. Dersom de templatene som er på serveren er vanskelige å jobbe med: rediger dem, eller lag din egen template. Trenger ikke å se bra ut. Viktigste er at det funker. \r\n\r\n  Måten å få tilgang til data som er lagret på serveren er å bruke: \r\n storage.read_from_file(level) , i serverprogrammet. \r\nArgumentet er den levelen du ønsker å hente data fra. \r\nReturverdien er en dictionary som ser slik ut:\r\ndict =  {\r\n   'key1' : 'poeng', 'navn', 'timestamp', 'clockdiff', 'level', 'game',\r\n   'key2' : 'poeng', 'navn', 'timestamp', 'clockdiff', 'level', 'game',\r\n    osv.\r\n  }\r\nPoeng er på index=0, og kan hentes på denne måten:   dict['key1'][0]\r\nNavn er på index=1, og kan hentes på denne måten:     dict['key1'][1]\r\n\r\nTrenger bare disse to verdiene for å lage en meningsfull highscore-liste. \r\nEtterhvert kan en legge til mer informasjon dersom ønskelig.\r\n"}}