<dt>{{ _("Archive Size") }}</dt>
<dd>{{ archive_size }}</dd>
+
+ <dt>{{ _("Total updates") }}</dt>
+ <dd>{{ total_updates }}</dd>
</dl>
{% end block %}
if res:
return res.count
- def get_archives_count(self):
- res = self.db.get("SELECT COUNT(*) AS count FROM fireinfo_profiles")
+ def get_total_updates_count(self, when=None):
+ res = self.db.get("SELECT COUNT(*) + SUM(updates) AS count \
+ FROM fireinfo_profiles WHERE time_created <= then_or_now(%s)", when)
if res:
return res.count
data = {
"archive_size" : self.fireinfo.get_archive_size(when=self.when),
+ "total_updates" : self.fireinfo.get_total_updates_count(when=self.when),
"profiles_with_data" : profiles_with_data,
"profiles_all" : profiles_all,
}