(history_entries, running_script_ids=None)
| 58 | |
| 59 | |
| 60 | def to_short_execution_log(history_entries, running_script_ids=None): |
| 61 | if running_script_ids is None: |
| 62 | running_script_ids = [] |
| 63 | |
| 64 | result = [] |
| 65 | for entry in history_entries: |
| 66 | running = entry.id in running_script_ids |
| 67 | external_entry = _translate_history_entry(entry, running) |
| 68 | result.append(external_entry) |
| 69 | |
| 70 | return result |
| 71 | |
| 72 | |
| 73 | def to_long_execution_log(entry, log, running): |