feat: add versioned research templates and alpha variants

This commit is contained in:
yuxuanhui
2026-09-08 21:29:21 +08:00
parent b604e6050e
commit f89ae211d2
55 changed files with 5650 additions and 435 deletions
+12
View File
@@ -0,0 +1,12 @@
"""Serialize UTC database timestamps consistently across PostgreSQL and SQLite."""
from datetime import datetime, timezone
from fastapi.encoders import jsonable_encoder
def encode_snapshot(value):
return jsonable_encoder(
value,
custom_encoder={datetime: lambda item: item.replace(tzinfo=item.tzinfo or timezone.utc).isoformat()},
)