first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user