Skip to content

Commit 0d058a4

Browse files
author
patched.codes[bot]
committed
Patched main.py
1 parent 9e553e4 commit 0d058a4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

main.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import requests
22
import subprocess
3+
from django.http import HttpResponse
4+
from django.views import View
35

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

24-
print("Command executed!")
26+
print("Command executed!")
27+
28+
29+
class HealthCheckView(View):
30+
31+
def get(self, request):
32+
return HttpResponse("ok")

0 commit comments

Comments
 (0)