Skip to content

Commit

Permalink
Adding catchphrase3 to NH fish
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinPayravi committed Aug 17, 2020
1 parent 1f3ed95 commit a5ec5d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def get_nh_fish_all():
if request.args.get('excludedetails') and (request.args.get('excludedetails') == 'true'):
fields = 'name,n_m1,n_m2,n_m3,n_m4,n_m5,n_m6,n_m7,n_m8,n_m9,n_m10,n_m11,n_m12,s_m1,s_m2,s_m3,s_m4,s_m5,s_m6,s_m7,s_m8,s_m9,s_m10,s_m11,s_m12'
else:
fields = 'url,name,number,image_url,catchphrase,catchphrase2,n_availability,n_m1,n_m2,n_m3,n_m4,n_m5,n_m6,n_m7,n_m8,n_m9,n_m10,n_m11,n_m12,s_availability,s_m1,s_m2,s_m3,s_m4,s_m5,s_m6,s_m7,s_m8,s_m9,s_m10,s_m11,s_m12,time,location,shadow_size,rarity,total_catch,sell_nook,sell_cj,tank_width,tank_length'
fields = 'url,name,number,image_url,catchphrase,catchphrase2,catchphrase3,n_availability,n_m1,n_m2,n_m3,n_m4,n_m5,n_m6,n_m7,n_m8,n_m9,n_m10,n_m11,n_m12,s_availability,s_m1,s_m2,s_m3,s_m4,s_m5,s_m6,s_m7,s_m8,s_m9,s_m10,s_m11,s_m12,time,location,shadow_size,rarity,total_catch,sell_nook,sell_cj,tank_width,tank_length'

return get_critter_list(limit, tables, fields)

Expand All @@ -384,7 +384,7 @@ def get_nh_fish(fish):
authorize(DB_KEYS, request)
fish = fish.replace('_', ' ')
tables = 'nh_fish'
fields = 'url,name,number,image_url,catchphrase,catchphrase2,n_availability,n_m1,n_m2,n_m3,n_m4,n_m5,n_m6,n_m7,n_m8,n_m9,n_m10,n_m11,n_m12,s_availability,s_m1,s_m2,s_m3,s_m4,s_m5,s_m6,s_m7,s_m8,s_m9,s_m10,s_m11,s_m12,time,location,shadow_size,rarity,total_catch,sell_nook,sell_cj,tank_width,tank_length'
fields = 'url,name,number,image_url,catchphrase,catchphrase2,catchphrase3,n_availability,n_m1,n_m2,n_m3,n_m4,n_m5,n_m6,n_m7,n_m8,n_m9,n_m10,n_m11,n_m12,s_availability,s_m1,s_m2,s_m3,s_m4,s_m5,s_m6,s_m7,s_m8,s_m9,s_m10,s_m11,s_m12,time,location,shadow_size,rarity,total_catch,sell_nook,sell_cj,tank_width,tank_length'
where = 'name="' + fish + '"'
params = { 'action': 'cargoquery', 'format': 'json', 'tables': tables, 'fields': fields, 'where': where }

Expand Down
7 changes: 6 additions & 1 deletion static/doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Nookipedia",
"description": "The Nookipedia API provides endpoints for retrieving Animal Crossing data pulled from the [Nookipedia wiki](https://nookipedia.com/wiki/Main_Page). A couple of the key benefits of using the Nookipedia API is access to data spanning the entire *Animal Crossing* series, as well as information that is constantly updated and expanding as editors work on the wiki.<br><br>This API launched in July 2020 and is under active development. At the moment, we currently have endpoints to retrieve information about *Animal Crossing: New Horizons* bugs, fish, and sea creatures. Coming very soon is data on all *Animal Crossing* villagers. In the horizon are endpoints for *New Horizons* furniture and clothing, as well as critters from previous games.<br><br>Access to the Nookipedia API requires obtaining a key. This is so we can manage our scale and provide better support for our users. To request access to the API, please fill out [this form](https://forms.gle/wLwtXLerKhfDrRLY8).<br><br>This API is 'version 2' of our [original API](https://nookipedia.com/api/). While the previous API scraped information directly from the wiki, this new edition of the API pulls data from a structured and constrained database, resulting in higher-quality data, better searching, and support for filtering.",
"version": "1.0.0"
"version": "1.0.1"
},
"servers": [
{
Expand Down Expand Up @@ -620,6 +620,11 @@
"example": "",
"description": "An alternative catchphrase that the player may say after catching the critter under certain conditions (such as catching a squid when it is raining). Note that the vast majority of critters do not have a second catchphrase."
},
"catchphrase3": {
"type": "string",
"example": "",
"description": "An alternative catchphrase that the player may say after catching the critter under certain conditions (such as catching a squid when it is raining). Note that the vast majority of critters do not have a third catchphrase."
},
"time": {
"type": "string",
"example": "4 PM – 9 AM",
Expand Down
10 changes: 9 additions & 1 deletion static/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ info:
scraped information directly from the wiki, this new edition of the API
pulls data from a structured and constrained database, resulting in
higher-quality data, better searching, and support for filtering.
version: 1.0.0
version: 1.0.1
servers:
- url: 'https://api.nookipedia.com/'
paths:
Expand Down Expand Up @@ -553,6 +553,14 @@ components:
the critter under certain conditions (such as catching a squid when
it is raining). Note that the vast majority of critters do not have
a second catchphrase.
catchphrase3:
type: string
example: ''
description: >-
An alternative catchphrase that the player may say after catching
the critter under certain conditions (such as catching a squid when
it is raining). Note that the vast majority of critters do not have
a third catchphrase.
time:
type: string
example: 4 PM – 9 AM
Expand Down

0 comments on commit a5ec5d9

Please sign in to comment.