summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hearthstoneAPIHandler.cpp2
-rw-r--r--src/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hearthstoneAPIHandler.cpp b/src/hearthstoneAPIHandler.cpp
index 5961e1f..7db7b04 100644
--- a/src/hearthstoneAPIHandler.cpp
+++ b/src/hearthstoneAPIHandler.cpp
@@ -108,7 +108,7 @@ HearthstoneAPIHandler::get_url(const std::string &t_parameters) {
const std::string HearthstoneAPIHandler::get_set_of_cards_url(
const std::string &t_card_parameters) {
- return get_url(std::format("cards/{}", t_card_parameters));
+ return get_url(std::format("cards{}", t_card_parameters));
}
std::string HearthstoneAPIHandler::make_api_request(const char *t_url,
diff --git a/src/main.cpp b/src/main.cpp
index 89cf782..27397f0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -10,8 +10,8 @@ int main() {
pqxx::work tx{cx};
const unsigned int card_id = 217;
- std::string card = hs_handler.get_cards(
- std::format("{}?locale=fr_FR&gameMode=constructed", card_id));
+ std::string card =
+ hs_handler.get_cards(std::format("/{}?locale=fr_FR", card_id));
std::cout << card << std::endl;
add_cards_to_database(card, tx);