Rebuild delta mode

This commit is contained in:
2021-08-31 20:21:39 +02:00
parent dbfebdf9be
commit 62bc25aade
5 changed files with 362 additions and 231 deletions

View File

@@ -164,6 +164,17 @@ class Project extends PhpObject {
return $iLastUpdate;
}
public function getLastMessageId($asConstraints=array()): int {
$iLastMsg = 0;
$asFeedIds = $this->getFeedIds();
foreach($asFeedIds as $iFeedId) {
$iLastMsg = max($iLastMsg, (new Feed($this->oDb, $iFeedId))->getLastMessageId($asConstraints));
}
return $iLastMsg;
}
public function getMaps() {
$sQuery =
"SELECT codename, geo_name, min_zoom, max_zoom, attribution ".