mirror of
https://github.com/Findus23/nonsense.git
synced 2024-09-19 16:03:50 +02:00
fix
This commit is contained in:
parent
dd5f6fd77b
commit
1037f9e7ef
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue