Grote push
This commit is contained in:
parent
4bcf82fa3e
commit
847f6650e9
7 changed files with 175 additions and 42 deletions
|
@ -9,11 +9,11 @@ De bestandsextensie werd aangepast om te kunnen debuggen op zowel Windows als Li
|
|||
import cgi
|
||||
import json
|
||||
|
||||
from scraper import run, converteer
|
||||
from scraper import run
|
||||
|
||||
parameters = cgi.FieldStorage()
|
||||
data = json.loads(parameters.getvalue('data'))
|
||||
antwoord = run(data['taal'], converteer(data['start']), converteer(data['einde']))
|
||||
antwoord = run(data['taal'], data['start'], data['einde'])
|
||||
|
||||
print("Content-Type: application/json")
|
||||
print() # Lege lijn na headers
|
||||
|
|
Reference in a new issue