BraydenMoore commited on
Commit
5c83afb
·
1 Parent(s): 9673a8f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -120,7 +120,8 @@ def index():
120
  print('IP:',ip)
121
  info = get_location(ip)
122
  country = info['country'].lower()
123
- name = (info['city'] + ", " + info['region'] + ", " + country).lower()
 
124
  timezone = pytz.timezone(info['timezone'])
125
  time = dt.datetime.now(timezone)
126
  time = time.strftime("%I:%M:%S %p")
@@ -148,7 +149,8 @@ def index():
148
  owner=owner,
149
  X=X,
150
  Y=Y,
151
- id=id)
 
152
 
153
  if __name__ == '__main__':
154
  app.run(host='0.0.0.0', port='7860')
 
120
  print('IP:',ip)
121
  info = get_location(ip)
122
  country = info['country'].lower()
123
+ name = (info['city'] + ", " + info['region']).lower()
124
+ page_title = (info['city'] + ", " + info['region'] + ", " + country).lower()
125
  timezone = pytz.timezone(info['timezone'])
126
  time = dt.datetime.now(timezone)
127
  time = time.strftime("%I:%M:%S %p")
 
149
  owner=owner,
150
  X=X,
151
  Y=Y,
152
+ id=id,
153
+ page_title=page_title)
154
 
155
  if __name__ == '__main__':
156
  app.run(host='0.0.0.0', port='7860')