Remove legacy code

This commit is contained in:
Roy Nieterau 2024-09-23 14:42:01 +02:00
parent d00fa72892
commit cd5303ef7b

View file

@ -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)