Browse Source

Feb 12 [UPDT] : Updated 'export_delete_login_log'

pull/231/merge
AjmalCybro 2 months ago
parent
commit
b9aa5dba33
  1. 2
      export_delete_login_log/__manifest__.py
  2. 6
      export_delete_login_log/doc/RELEASE_NOTES.md
  3. 2
      export_delete_login_log/models/login_user_log.py

2
export_delete_login_log/__manifest__.py

@ -21,7 +21,7 @@
############################################################################### ###############################################################################
{ {
'name': "Export, Delete, Login Log", 'name': "Export, Delete, Login Log",
'version': "16.0.1.0.0", 'version': "16.0.1.0.1",
'category': 'Extra Tools', 'category': 'Extra Tools',
'summary': """Logs information about Export, Delete, Login""", 'summary': """Logs information about Export, Delete, Login""",
'description': """ 'description': """

6
export_delete_login_log/doc/RELEASE_NOTES.md

@ -3,5 +3,9 @@
#### 28.01.2024 #### 28.01.2024
#### Version 16.0.1.0.0 #### Version 16.0.1.0.0
##### ADD ##### ADD
- Initial commit for Export Delete Login Log
Initial commit for Export Delete Login Log #### 03.02.2025
#### Version 16.0.1.0.1
#### UPDATE
- Updated API urls

2
export_delete_login_log/models/login_user_log.py

@ -43,7 +43,7 @@ class ResUsers(models.Model):
ip_address = (requests.get( ip_address = (requests.get(
f'https://api.ipify.org?format=json').json()).get('ip') f'https://api.ipify.org?format=json').json()).get('ip')
response = requests.get( response = requests.get(
f"https://ipapi.co/{ip_address}/json/?key={api_key}").json()\ f"https://ipapi.co/{ip_address}/json/?access_key={api_key}").json()\
if have_api_key else requests.get( if have_api_key else requests.get(
f"https://ipapi.co/{ip_address}/json/").json() f"https://ipapi.co/{ip_address}/json/").json()
if response.get("error"): if response.get("error"):

Loading…
Cancel
Save