[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7
@ -1,4 +1,22 @@
|
|||||||
from blender_kitsu import gazu
|
from blender_kitsu import gazu
|
||||||
|
from . import client as raw
|
||||||
|
from .sorting import sort_by_name
|
||||||
|
|
||||||
|
from .cache import cache
|
||||||
|
|
||||||
|
default = raw.default_client
|
||||||
|
|
||||||
|
@cache
|
||||||
|
def get_all_edits(relations=False, client=default):
|
||||||
|
"""
|
||||||
|
Retrieve all edit entries.
|
||||||
|
"""
|
||||||
|
params = {}
|
||||||
|
if relations:
|
||||||
|
params = {"relations": "true"}
|
||||||
|
path = "edits/all"
|
||||||
|
edits = raw.fetch_all(path, params, client=client)
|
||||||
|
return sort_by_name(edits)
|
||||||
|
|
||||||
def add_comment_on_edit_task(task_id:str,
|
def add_comment_on_edit_task(task_id:str,
|
||||||
rendered_filepath = None, comment=""
|
rendered_filepath = None, comment=""
|
||||||
|
Loading…
Reference in New Issue
Block a user