Add display_name to source_package_publishing_history

main
Simon Quigley 6 days ago
parent 4c33732c98
commit 0100d7664e

@ -72,6 +72,10 @@ void source_package_publishing_history::parse_json(const std::string& json_data)
if (data.contains("distro_series_link") && data["distro_series_link"].is_string()) { if (data.contains("distro_series_link") && data["distro_series_link"].is_string()) {
distro_series_link = data["distro_series_link"].get<std::string>(); distro_series_link = data["distro_series_link"].get<std::string>();
} }
if (data.contains("display_name") && data["display_name"].is_string()) {
display_name = data["display_name"].get<std::string>();
}
} catch (const std::exception& e) { } catch (const std::exception& e) {
std::cerr << "Error parsing source JSON: " << e.what() << std::endl; std::cerr << "Error parsing source JSON: " << e.what() << std::endl;
} }

@ -48,6 +48,7 @@ public:
bool requestDeletion(const std::string& removal_comment = ""); bool requestDeletion(const std::string& removal_comment = "");
std::string display_name;
std::string distro_series_link; std::string distro_series_link;
std::string self_link; std::string self_link;
std::string source_package_name; std::string source_package_name;

Loading…
Cancel
Save