cobweb-launcher 0.1.23__py3-none-any.whl → 0.1.24__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.

Potentially problematic release.


This version of cobweb-launcher might be problematic. Click here for more details.

cobweb/db/redis_db.py CHANGED
@@ -87,11 +87,10 @@ class RedisDB:
87
87
  seeds = [seed if isinstance(seed, Seed) else Seed(seed) for seed in seeds]
88
88
 
89
89
  if seeds:
90
- redis_key = None
91
90
  if spider_status and Setting.DEAL_MODEL in [DealModel.success, DealModel.polling]:
92
- self.client.sadd(redis_key, *(seed.format_seed for seed in seeds))
91
+ self.client.sadd(self.succeed_key, *(seed.format_seed for seed in seeds))
93
92
  elif not spider_status:
94
- self.client.sadd(redis_key, *(str(seed) for seed in seeds))
93
+ self.client.sadd(self.failed_key, *(str(seed) for seed in seeds))
95
94
  self.client.zrem(self.spider_key, *(seed.format_seed for seed in seeds))
96
95
 
97
96
  @decorators.check_redis_status
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.1.23
3
+ Version: 0.1.24
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -11,7 +11,7 @@ cobweb/task.py,sha256=SyWC43C7hqQAqH-1HECXEEgp_6L6lwDhYe1kZNnHUvA,2006
11
11
  cobweb/utils.py,sha256=ivmRqJJNtwdOKYT4G7qQCWnL8ar9c-shxeDZzGB2E9c,2651
12
12
  cobweb/db/__init__.py,sha256=jC-uOThYLtiDUG6cTJRkDITgOzR4nIOeaZQeZhuk-v0,139
13
13
  cobweb/db/oss_db.py,sha256=59HwMMfoGUr6l_BI4p84YHYoQwEn22cCM_1GZK34Uo4,4244
14
- cobweb/db/redis_db.py,sha256=Jrx83o3hmMXtnTWHemgPwCaCBwdju5fIiLGyyb91PAg,8147
14
+ cobweb/db/redis_db.py,sha256=mAkxlxZrrSDvq8g3WTqRNKSlGlfU8DEI-ToE8fz8GcE,8131
15
15
  cobweb/db/scheduler/__init__.py,sha256=w5uIGEB1wLJ-H9RqGpzRwOEWW-BBVSk6Cc7FxZIlWCs,51
16
16
  cobweb/db/scheduler/default.py,sha256=XDtxNyu5KTpVAbfCOW8mR1zNFNHiMuaQ4sAhZuIYBoM,79
17
17
  cobweb/db/scheduler/textfile.py,sha256=P5pk75DUnbXbLNPOaMIbHh2lbwBGBlv0mitX58yK-MU,786
@@ -40,8 +40,8 @@ cobweb/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  cobweb/single/launcher.py,sha256=IoJbn87j7t7Pib_FxoWZmmX8asXOqNGb-9ospw6EYJI,7302
41
41
  cobweb/single/models.py,sha256=wIEV35666lxdzqjDqBHPjjh-r6zD0x24rtQYz7d4Oxw,4332
42
42
  cobweb/single/nest.py,sha256=49K6KQ934INfPrWQsrq9rIFpQauLbLGOFbDaHvoQzOk,5015
43
- cobweb_launcher-0.1.23.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
44
- cobweb_launcher-0.1.23.dist-info/METADATA,sha256=zjGAoONTDsb9wgVJ68CkLaigddO62baFAMKf5dPP8I8,1246
45
- cobweb_launcher-0.1.23.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
46
- cobweb_launcher-0.1.23.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
47
- cobweb_launcher-0.1.23.dist-info/RECORD,,
43
+ cobweb_launcher-0.1.24.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
44
+ cobweb_launcher-0.1.24.dist-info/METADATA,sha256=j4GRpxDY20FeedJh2UYZxyfmI8Q4RpA5okIb7g6j2tI,1246
45
+ cobweb_launcher-0.1.24.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
46
+ cobweb_launcher-0.1.24.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
47
+ cobweb_launcher-0.1.24.dist-info/RECORD,,