bitmapist 3.117__tar.gz → 3.118__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitmapist
3
- Version: 3.117
3
+ Version: 3.118
4
4
  Summary: Implements a powerful analytics library using Redis bitmaps.
5
5
  Project-URL: Repository, https://github.com/Doist/bitmapist
6
6
  Author-email: Amir Salihefendic <dev@doist.com>, Doist Developers <dev@doist.com>
@@ -389,7 +389,9 @@ class MixinEventsMisc:
389
389
 
390
390
  def has_events_marked(self):
391
391
  cli = get_redis(self.system)
392
- return bool(cli.exists(self.redis_key))
392
+ # Note: bitcount() returns 0 if the key doesn't exist
393
+ # https://redis.io/docs/latest/commands/bitcount/
394
+ return cli.bitcount(self.redis_key) > 0
393
395
 
394
396
  def delete(self):
395
397
  cli = get_redis(self.system)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bitmapist"
3
- version = "3.117"
3
+ version = "3.118"
4
4
  description = "Implements a powerful analytics library using Redis bitmaps."
5
5
  authors = [
6
6
  { name = "Amir Salihefendic", email = "dev@doist.com" },
File without changes
File without changes
File without changes
File without changes
File without changes