Rebuild delta mode

This commit is contained in:
franzz committed 2021-08-31 20:21:39 +02:00
1 parent dbfebdf9be
commit 62bc25aade
5 files changed
+362 -231

No files matched your search

+11
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 ".