Skip to content

Commit

Permalink
moves BASE_URL to centrally-located pokedex.constants module
Browse files Browse the repository at this point in the history
  • Loading branch information
withtwoemms committed Jan 4, 2024
1 parent 20af921 commit 7fdf4f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pokedex/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from actionpack.utils import Closure

from pokedex.api import PokeApiEndpoints, Pokemon
from pokedex.api.constants import BASE_URL
from pokedex.api.models import PokeApiResource, PokeApiResourceRef, PokemonRef
from pokedex.api.request import ApiRequest
from pokedex.api.request.protocol import DeferredRequest
from pokedex.constants import BASE_URL


ApiRequestType = ApiRequest.type()
Expand Down
1 change: 0 additions & 1 deletion pokedex/api/constants.py

This file was deleted.

2 changes: 2 additions & 0 deletions pokedex/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
DBROOT = PROJECTROOT / "pokedex" / "db"
CACHEPATH = DBROOT / "cache"

BASE_URL = "https://pokeapi.co/api/v2/"

API_REQUEST_IMPL = environ.get("API_REQUEST_IMPL") or "DEFAULT"

0 comments on commit 7fdf4f9

Please sign in to comment.