Skip to content

Commit

Permalink
version 20241204.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Dec 5, 2024
1 parent 172b15c commit 88930e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydal/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2749,11 +2749,11 @@ def count(self, distinct=None, cache=None):
time_expire = cache["expiration"]
key = cache.get("key")
if not key:
key = db._uri + "/" + sql
key = f"{db._uri}/sql"
key = hashlib_md5(key).hexdigest()
else:
cache_model, time_expire = cache
key = db._uri + "/" + sql
key = f"{db._uri}/sql"
key = hashlib_md5(key).hexdigest()
return cache_model(
key,
Expand Down

0 comments on commit 88930e2

Please sign in to comment.