aboutsummaryrefslogtreecommitdiff
path: root/scripts/probes.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-08-03 14:36:13 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-08-03 15:50:41 +0200
commit0caffceec8b58bc3f78c0d8ea36d2f7e9da668ec (patch)
tree25ede52ae4b02a2377ae40d2c146c7ed2e9abe2a /scripts/probes.py
parentensuring the icon isn't empty and redoing a bit of logging (diff)
downloadnewspipe-0caffceec8b58bc3f78c0d8ea36d2f7e9da668ec.tar.gz
newspipe-0caffceec8b58bc3f78c0d8ea36d2f7e9da668ec.tar.bz2
newspipe-0caffceec8b58bc3f78c0d8ea36d2f7e9da668ec.zip
sqlalchemy was requesting icons everytime feed where listed
so i choosed to move the icons into their own table
Diffstat (limited to 'scripts/probes.py')
-rw-r--r--scripts/probes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/probes.py b/scripts/probes.py
index bfad4e6e..4c632184 100644
--- a/scripts/probes.py
+++ b/scripts/probes.py
@@ -45,8 +45,10 @@ class FeedProbe(AbstractMuninPlugin):
def execute(self):
delta = datetime.now() - timedelta(minutes=LATE_AFTER + FETCH_RATE + 1)
+ total = FeedController().read().count()
- print("feeds.value %d" % len(FeedController().list_late(delta)))
+ print("feeds.value %d"
+ % len(FeedController().list_late(delta, limit=total)))
print("feeds_total.value %d" % FeedController().read().count())
bgstack15