1
0
Fork 0
mirror of https://github.com/Findus23/nonsense.git synced 2024-09-19 16:03:50 +02:00
This commit is contained in:
Lukas Winkler 2016-11-08 15:05:21 +01:00
parent dd5f6fd77b
commit 1037f9e7ef
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
import json
import random
with open('data.json') as data_file:
with open('words.json') as data_file:
data = json.load(data_file)

View file

@ -8,7 +8,7 @@ import generate
@app.route('/api/description/<int:count>/')
def get_description(count):
descriptions = []
if (count > 1000):
if count > 1000:
abort(422)
for _ in range(count):
descriptions.append(generate.get_description())