diff options
author | Parker <contact@pkrm.dev> | 2024-11-06 01:08:04 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-11-06 01:08:04 -0600 |
commit | 4c1dd74db3f9ac37134db13c8e5a499a9f37594a (patch) | |
tree | 5f9b72c25b66586e22d18ec5fd55e262e6eb3e2c /app/util/log.py | |
parent | eadc9289338e8537c1ee70274007eea2dc395bde (diff) |
Lots more functionality - working towards UI
Diffstat (limited to 'app/util/log.py')
-rw-r--r-- | app/util/log.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/util/log.py b/app/util/log.py index b84c8a0..1d21445 100644 --- a/app/util/log.py +++ b/app/util/log.py @@ -60,7 +60,6 @@ def log(link, ip, user_agent): # Get the location and ISP of the user location, isp = ip_to_location(ip) - timestamp = datetime.datetime.now() ua_string = user_agent_parser.Parse(user_agent) browser = ua_string["user_agent"]["family"] os = f'{ua_string["os"]["family"]} {ua_string["os"]["major"]}' @@ -69,7 +68,6 @@ def log(link, ip, user_agent): new_log = Log( owner=owner, link=link, - timestamp=timestamp, ip=ip, location=location, browser=browser, |