mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Ignoring premium setup for now.
This commit is contained in:
parent
289eedb46f
commit
e64dc781ed
2 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
|||
git:
|
||||
repo: https://github.com/samuelclay/NewsBlur.git
|
||||
dest: /srv/newsblur/
|
||||
version: master
|
||||
version: pro
|
||||
register: pulled
|
||||
|
||||
- block:
|
||||
|
|
|
@ -649,16 +649,16 @@ class Feed(models.Model):
|
|||
|
||||
@classmethod
|
||||
def setup_feeds_for_premium_subscribers(cls, feed_ids):
|
||||
logging.info(" ---> ~SN~FMScheduling immediate premium setup of ~SB%s~SN feeds..." %
|
||||
len(feed_ids))
|
||||
logging.info(f" ---> ~SN~FMIgnoring premium setup of ~SB{len(feed_ids)}~SN feeds...")
|
||||
return
|
||||
|
||||
logging.info(f" ---> ~SN~FMScheduling immediate premium setup of ~SB{len(feed_ids)}~SN feeds...")
|
||||
|
||||
feeds = Feed.objects.filter(pk__in=feed_ids)
|
||||
for feed in feeds:
|
||||
feed.setup_feed_for_premium_subscribers()
|
||||
|
||||
def setup_feed_for_premium_subscribers(self):
|
||||
if self.active_premium_subscribers >= 1:
|
||||
return
|
||||
self.count_subscribers()
|
||||
self.set_next_scheduled_update(verbose=settings.DEBUG)
|
||||
self.sync_redis()
|
||||
|
|
Loading…
Add table
Reference in a new issue