|
|
|
@ -94,6 +94,15 @@ bool build::retry() {
|
|
|
|
|
return response.has_value();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool build::rescore(int score) {
|
|
|
|
|
if (self_link.empty()) return false;
|
|
|
|
|
std::map<std::string, std::string> params;
|
|
|
|
|
params["ws.op"] = "rescore";
|
|
|
|
|
params["score"] = score;
|
|
|
|
|
auto response = lp->api_post(self_link, params);
|
|
|
|
|
return response.has_value();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void build::set_lp(launchpad* lp_ptr) {
|
|
|
|
|
lp = lp_ptr;
|
|
|
|
|
}
|
|
|
|
|