|
@@ -140,7 +140,7 @@ class ModelService:
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
def del_eq_info(userID, uid):
|
|
def del_eq_info(userID, uid):
|
|
- notify_alexa_delete(uid)
|
|
|
|
|
|
+ notify_alexa_delete(userID, uid)
|
|
ei_qs = Equipment_Info.objects.filter(userID_id=userID, devUid=uid)
|
|
ei_qs = Equipment_Info.objects.filter(userID_id=userID, devUid=uid)
|
|
ei_qs.delete()
|
|
ei_qs.delete()
|
|
# ei_count = ei_qs.count()
|
|
# ei_count = ei_qs.count()
|
|
@@ -169,9 +169,10 @@ class ModelService:
|
|
print(repr(e))
|
|
print(repr(e))
|
|
|
|
|
|
|
|
|
|
-def notify_alexa_delete(UID):
|
|
|
|
|
|
+def notify_alexa_delete(userID, UID):
|
|
url = 'https://www.zositech.xyz/deviceStatus/delete'
|
|
url = 'https://www.zositech.xyz/deviceStatus/delete'
|
|
data = {
|
|
data = {
|
|
|
|
+ 'userID': userID,
|
|
'UID': UID
|
|
'UID': UID
|
|
}
|
|
}
|
|
try:
|
|
try:
|