[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7
@ -19,6 +19,19 @@ def get_all_edits(relations=False, client=default):
|
||||
edits = raw.fetch_all(path, params, client=client)
|
||||
return sort_by_name(edits)
|
||||
|
||||
@cache
|
||||
def get_edit(edit_id, relations=False, client=default):
|
||||
"""
|
||||
Retrieve all edit entries.
|
||||
"""
|
||||
edit_entry = normalize_model_parameter(edit_id)
|
||||
params = {}
|
||||
if relations:
|
||||
params = {"relations": "true"}
|
||||
path = f"edits/{edit_entry['id']}"
|
||||
edit_entry = raw.fetch_all(path, params, client=client)
|
||||
return edit_entry
|
||||
|
||||
@cache
|
||||
def get_all_edits_with_tasks(relations=False, client=default):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user