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

Commitc96fde4

Browse files
author
patched.codes[bot]
committed
Patched main.py
1 parent9e553e4 commitc96fde4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎main.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
importrequests
22
importsubprocess
3+
fromdjango.httpimportHttpResponse
4+
fromdjango.viewsimportView
35

46
if__name__=='__main__':
57
formats.get_format()
@@ -21,4 +23,9 @@
2123
command="ping "+user_input
2224
subprocess.call(command,shell=True)
2325

24-
print("Command executed!")
26+
print("Command executed!")
27+
28+
29+
classHealthCheckView(View):
30+
defget(self,request):
31+
returnHttpResponse('ok')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp