Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62ef317

Browse files
committed
Make birdseye /call/ URL point to ipython call view, so inner call arrows don't lead to other birdseye UI stuff. Disable other birdseye views
1 parent6cfada4 commit62ef317

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎backend/main/views.py‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
fromtypingimportget_type_hints
1010
fromuuidimportuuid4
1111

12+
importbirdseye.server
1213
importrequests
1314
frombirdseyeimporteye
1415
fromdjango.confimportsettings
@@ -124,7 +125,7 @@ def run_code(self, code, source, page_index, step_index):
124125
ifis_top_call:
125126
call_id=call.id
126127

127-
birdseye_url=f"/birdseye/ipython_call/{call_id}"
128+
birdseye_url=f"/birdseye/call/{call_id}"
128129

129130
returndict(
130131
result=output_parts,
@@ -277,3 +278,13 @@ class form_class(ModelForm, PlaceHolderForm):
277278
classMeta:
278279
model=ListEmail
279280
fields= ["email"]
281+
282+
283+
deffix_birdseye_server():
284+
views=birdseye.server.app.view_functions
285+
ipython_call_view=views["ipython_call_view"]
286+
views.clear()
287+
views["call_view"]=ipython_call_view
288+
289+
290+
fix_birdseye_server()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp