Skip to content

Commit

Permalink
Remove v2-src clone and v2 tests, fix entry with name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gadhagod committed Sep 30, 2024
1 parent fcf3e14 commit 3a2d940
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 359 deletions.
95 changes: 95 additions & 0 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion endpoints/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_entry_with_name(self, name):
def get_entry(self, id_or_name: str):
if id_or_name.isnumeric():
return self.get_entry_with_id(int(id_or_name))
return self.get_entry_with_name()
return self.get_entry_with_name(id_or_name)

@abstractmethod
def get_category(self, collection, category):
Expand Down
1 change: 0 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
set -e
git clone https://github.com/gadhagod/Hyrule-Compendium-API -b v2-src v2
gunicorn server:app $1
2 changes: 1 addition & 1 deletion tests/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timeout": 20000,
"require": "ts-node/register",
"file": ["test/v3/index.ts", "test/v2.ts"]
"file": ["test/v3/index.ts"]
}
3 changes: 1 addition & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
},
"scripts": {
"test": "npx mocha",
"test:v3": "npx mocha -g v3",
"test:v2": "npx mocha -g v2"
"test:v3": "npx mocha -g v3"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 3a2d940

Please sign in to comment.