Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

fix(stats): weekly actives count complete weeks only

mrbizarrof7c6e6a3ba77
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index 8659468..750a9eb 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -13274,9 +13274,12 @@ _USAGE_FLEET_QUERIES = {
"SELECT toDate(timestamp) AS d, count() AS c FROM events "
"WHERE event = 'render_completed' AND timestamp > now() - INTERVAL 30 DAY "
"GROUP BY d ORDER BY d",
+ # Complete weeks only: the running week would read as a collapse
+ # ("552 → 106") on a Sunday morning.
"active_by_week":
"SELECT toStartOfWeek(timestamp) AS w, count(DISTINCT distinct_id) AS c "
"FROM events WHERE event = 'app_boot' AND timestamp > now() - INTERVAL 12 WEEK "
+ "AND toStartOfWeek(timestamp) < toStartOfWeek(now()) "
"GROUP BY w ORDER BY w",
}
diff --git a/test_stats_growth.py b/test_stats_growth.py
index 4b2e8e0..d0e441a 100644
--- a/test_stats_growth.py
+++ b/test_stats_growth.py
@@ -53,6 +53,8 @@ class FleetQueriesAndPage(unittest.TestCase):
self.assertNotIn("INTERVAL", q["total_installs"])
self.assertNotIn("INTERVAL", q["installs_by_day"])
self.assertIn("render_completed", q["total_renders"])
+ # the running week is excluded, or the caption reads as a collapse
+ self.assertIn("toStartOfWeek(timestamp) < toStartOfWeek(now())", q["active_by_week"])
def test_page_has_the_tiles_and_the_chart(self):
html = p.STATS_HTML_FILE.read_text(encoding="utf-8")