diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-26 08:46:34 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-26 08:46:34 +0700 |
| commit | 13b2ede1be57758fa80e9cd91ee34b35dc1e326f (patch) | |
| tree | ca09680fdf7c1eea550b2a2d8cb00755b4f1a999 | |
| parent | e933a05e9b03e489b581f27d1aa304774aafc320 (diff) | |
user activity log
| -rwxr-xr-x | indoteknik_custom/models/user_activity_log.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/models/user_activity_log.py b/indoteknik_custom/models/user_activity_log.py index ef801ca5..0a530296 100755 --- a/indoteknik_custom/models/user_activity_log.py +++ b/indoteknik_custom/models/user_activity_log.py @@ -134,11 +134,12 @@ class UserActivityLog(models.Model): delta_time = delta_time.strftime('%Y-%m-%d %H:%M:%S') activity_logs = self.env['user.activity.log'].search([ - ('url', 'ilike', 'https://indoteknik.co%/shop/product/%'), + # ('url', 'ilike', 'https://indoteknik.com%/shop/product/%'), + ('url', 'ilike', '%/shop/product/%'), ('create_date', '>', delta_time), ('url', 'not ilike', 'shopping'), ], limit=1000) - for activity_log in activity_logs: + for activity_log in activity_logs: _logger.info(activity_log.url) strip_index = i = 0 for c in activity_log.url: |
