Files
Forge-Engine/screens/animations/get_animation_clip.py
T
williamandwilliam 3f4ebc4527
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s
first commit
2026-08-21 16:23:49 +02:00

12 lines
323 B
Python

import db
from .ensure_animation_schema import ensure_animation_schema
def get_animation_clip(slug, clip_id):
ensure_animation_schema(slug)
conn = db.connect(slug)
row = conn.execute("SELECT * FROM _animation_clips WHERE id = ?", (clip_id,)).fetchone()
conn.close()
return dict(row) if row else None