Description is an empty string if not set
parent
86b178f55b
commit
cfa04f2df8
|
@ -254,7 +254,10 @@ void generate_achievements(CurlEasy &easy)
|
||||||
output_json[i]["hidden"] = std::to_string(item.value()["hidden"].get<int>());
|
output_json[i]["hidden"] = std::to_string(item.value()["hidden"].get<int>());
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
output_json[i]["description"] = item.value()["description"];
|
if( !item.value()["description"].is_null() )
|
||||||
|
output_json[i]["description"] = item.value()["description"];
|
||||||
|
else
|
||||||
|
output_json[i]["description"] = "";
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue