pragnakalp commited on
Commit
24e2d0b
1 Parent(s): 40d385d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -49,7 +49,7 @@ Entities_Found =[]
49
  Entity_Types = []
50
  k = 0
51
  def get_device_ip_address():
52
-
53
  if os.name == "nt":
54
  result = "Running on Windows"
55
  hostname = socket.gethostname()
@@ -63,7 +63,7 @@ def get_device_ip_address():
63
  ip_address = s.getsockname()[0]
64
  gateway = gw[2]
65
  host = socket.gethostname()
66
- print(result)
67
  return ip_address
68
  else:
69
  result['id'] = os.name + " not supported yet."
@@ -71,6 +71,7 @@ def get_device_ip_address():
71
  return result
72
 
73
  def get_location(ip_addr):
 
74
  ip=ip_addr
75
  # ip=str(request.remote_addr)
76
  req_data={
 
49
  Entity_Types = []
50
  k = 0
51
  def get_device_ip_address():
52
+ print('get IP ......................')
53
  if os.name == "nt":
54
  result = "Running on Windows"
55
  hostname = socket.gethostname()
 
63
  ip_address = s.getsockname()[0]
64
  gateway = gw[2]
65
  host = socket.gethostname()
66
+ print("ip_address======>>",ip_address)
67
  return ip_address
68
  else:
69
  result['id'] = os.name + " not supported yet."
 
71
  return result
72
 
73
  def get_location(ip_addr):
74
+ print('get location ......................')
75
  ip=ip_addr
76
  # ip=str(request.remote_addr)
77
  req_data={