Revert "qr-verify: Push to fam's alert channel"
This reverts commit 2514b557e7294ef71c1ac8561d66052de8bad9df.
This commit is contained in:
parent
2514b557e7
commit
10d6b45388
@ -756,10 +756,6 @@ class QrVerifyView(BaseView):
|
|||||||
if sd.code and not settings.DEBUG:
|
if sd.code and not settings.DEBUG:
|
||||||
cmd = [MANAGE_PY, 'qrrepeatalert', code]
|
cmd = [MANAGE_PY, 'qrrepeatalert', code]
|
||||||
subprocess.Popen(cmd)
|
subprocess.Popen(cmd)
|
||||||
try:
|
|
||||||
requests.post('https://euphon-alert-23358.famzheng.workers.dev/', data=f'qr-verify: {resp}, messages: {messages}')
|
|
||||||
except Exception as e:
|
|
||||||
print(f"Failed to send qr-verify alert: {e}")
|
|
||||||
return JsonResponse(resp)
|
return JsonResponse(resp)
|
||||||
|
|
||||||
class CheckAutoTorchView(BaseView):
|
class CheckAutoTorchView(BaseView):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user