cobweb-launcher 1.3.8__py3-none-any.whl → 1.3.9__py3-none-any.whl

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.
@@ -59,10 +59,12 @@ class ApiScheduler:
59
59
  def refresh(self, key, items: dict[str, int]):
60
60
  refresh_time = int(time.time())
61
61
  its = {k: -refresh_time - v / 1000 for k, v in items}
62
- self._db.zadd(key, item=its, xx=True)
62
+ if its:
63
+ self._db.zadd(key, item=its, xx=True)
63
64
 
64
65
  def delete(self, key, values):
65
- self._db.zrem(key, *values)
66
+ if values:
67
+ self._db.zrem(key, *values)
66
68
 
67
69
 
68
70
 
@@ -59,10 +59,12 @@ class RedisScheduler:
59
59
  def refresh(self, key, items: dict[str, int]):
60
60
  refresh_time = int(time.time())
61
61
  its = {k: -refresh_time - v / 1000 for k, v in items}
62
- self._db.zadd(key, item=its, xx=True)
62
+ if its:
63
+ self._db.zadd(key, item=its, xx=True)
63
64
 
64
65
  def delete(self, key, values):
65
- self._db.zrem(key, *values)
66
+ if values:
67
+ self._db.zrem(key, *values)
66
68
 
67
69
 
68
70
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 1.3.8
3
+ Version: 1.3.9
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -27,14 +27,14 @@ cobweb/pipelines/pipeline.py,sha256=Pycm22bHId9a3gdP81D5y7SsuMndYooTb5n4zQxP7dM,
27
27
  cobweb/pipelines/pipeline_console.py,sha256=NEh-4zhuVAQOqwXLsqeb-rcNZ9_KXFUpL3otUTL5qBs,754
28
28
  cobweb/pipelines/pipeline_loghub.py,sha256=xZ6D55BGdiM71WUv83jyLGbEyUwhBHLJRZoXthBxxTs,1019
29
29
  cobweb/schedulers/__init__.py,sha256=y7Lv_7b0zfTl0OhIONb_8u1K1C9gVlBA-xz_XG_kI9g,85
30
- cobweb/schedulers/scheduler_api.py,sha256=mC54QOS0PEu4SFvxfD5Qr9239hAxwMrKTg-33rirANE,2112
31
- cobweb/schedulers/scheduler_redis.py,sha256=Aw7de0sXigRAxJgqUhHWu30hMBzgEWjkj-3OXXqmldg,2118
30
+ cobweb/schedulers/scheduler_api.py,sha256=K-QhHyz1kNqmcronvoThAFWjxvX7RxZib2MoUd8jH3I,2155
31
+ cobweb/schedulers/scheduler_redis.py,sha256=G9sfxRCTWdJQvNeak4f8wtu7CTsU0I1Ci3CcaGhDqSU,2161
32
32
  cobweb/utils/__init__.py,sha256=YvD4mIDBd9jmGA6WJBcwkgDU2jRFNBCEbarZCSUBAHE,114
33
33
  cobweb/utils/bloom.py,sha256=vng-YbKgh9HbtpAWYf_nkUSbfVTOj40aqUUejRYlsCU,1752
34
34
  cobweb/utils/oss.py,sha256=6Qlhdde7CcwD69bBe2rGWHY3-aptG9NXB_DZLhjgDRQ,3553
35
35
  cobweb/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
36
- cobweb_launcher-1.3.8.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
37
- cobweb_launcher-1.3.8.dist-info/METADATA,sha256=vxO6miknf7w1rom7AF3FubCwBiiYCHgS5xXVGKNdQdk,6509
38
- cobweb_launcher-1.3.8.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
- cobweb_launcher-1.3.8.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
40
- cobweb_launcher-1.3.8.dist-info/RECORD,,
36
+ cobweb_launcher-1.3.9.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
37
+ cobweb_launcher-1.3.9.dist-info/METADATA,sha256=_7dWqPIUEUOtHlziS0gKpSBjjNvwYXWzraNWWHwNVcw,6509
38
+ cobweb_launcher-1.3.9.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
+ cobweb_launcher-1.3.9.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
40
+ cobweb_launcher-1.3.9.dist-info/RECORD,,