[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7

Merged
Nick Alberelli merged 28 commits from :feature/upload_render_to_kitsu into master 2023-04-17 19:02:15 +02:00
Showing only changes of commit 0fe7fb56f6 - Show all commits

View File

@ -19,6 +19,19 @@ def get_all_edits(relations=False, client=default):
edits = raw.fetch_all(path, params, client=client) edits = raw.fetch_all(path, params, client=client)
return sort_by_name(edits) 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 @cache
def get_all_edits_with_tasks(relations=False, client=default): def get_all_edits_with_tasks(relations=False, client=default):
""" """