MCPcopy Index your code
hub / github.com/bugy/script-server / get

Method get

src/web/server.py:685–693  ·  view source on GitHub ↗
(self, user)

Source from the content-addressed store, hash-verified

683 @check_authorization
684 @inject_user
685 def get(self, user):
686 history_entries = self.application.execution_logging_service.get_history_entries(user.user_id)
687 running_script_ids = []
688 for entry in history_entries:
689 if self.application.execution_service.is_running(entry.id, user):
690 running_script_ids.append(entry.id)
691
692 short_logs = to_short_execution_log(history_entries, running_script_ids)
693 self.write(json.dumps(short_logs))
694
695
696class GetLongHistoryEntryHandler(BaseRequestHandler):

Callers

nothing calls this directly

Calls 5

to_short_execution_logFunction · 0.90
get_history_entriesMethod · 0.80
is_runningMethod · 0.80
appendMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected