Commit 9075732e authored by Leigh Stoller's avatar Leigh Stoller

Add method to bump the extension count/days stats.

parent ecc4ac3a
......@@ -288,6 +288,16 @@ class Instance
" extension_reason='$safe_reason' ".
"where uuid='$uuid'");
}
function BumpExtensionCount($granted)
{
$uuid = $this->uuid();
DBQueryWarn("update apt_instances set ".
" extension_count=extension_count+1, ".
" extension_days=extension_days+${granted} ".
"where uuid='$uuid'");
}
#
# Permission check; does user have permission to view instance.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment