mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Remove legacy code
This commit is contained in:
parent
d00fa72892
commit
cd5303ef7b
1 changed files with 5 additions and 11 deletions
|
|
@ -267,17 +267,11 @@ class DeliveryOptionsDialog(QtWidgets.QDialog):
|
|||
new_report_items, uploaded = deliver_single_file(*args)
|
||||
report_items.update(new_report_items)
|
||||
self._update_progress(uploaded)
|
||||
else: # fallback for Pype2 and representations without files
|
||||
frame = repre["context"].get("frame")
|
||||
if frame:
|
||||
repre["context"]["frame"] = len(str(frame)) * "#"
|
||||
|
||||
if not frame:
|
||||
new_report_items, uploaded = deliver_single_file(*args)
|
||||
else:
|
||||
new_report_items, uploaded = deliver_sequence(*args)
|
||||
report_items.update(new_report_items)
|
||||
self._update_progress(uploaded)
|
||||
else:
|
||||
raise ValueError(
|
||||
"Representation entity is lacking `files`."
|
||||
f" Unable to process entity: {repre}"
|
||||
)
|
||||
|
||||
self.text_area.setText(self._format_report(report_items))
|
||||
self.text_area.setVisible(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue