aboutsummaryrefslogtreecommitdiffstats
path: root/piccast/feeds/management
diff options
context:
space:
mode:
Diffstat (limited to 'piccast/feeds/management')
-rw-r--r--piccast/feeds/management/commands/scrape_feeds.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/piccast/feeds/management/commands/scrape_feeds.py b/piccast/feeds/management/commands/scrape_feeds.py
index 2371f97..957c596 100644
--- a/piccast/feeds/management/commands/scrape_feeds.py
+++ b/piccast/feeds/management/commands/scrape_feeds.py
@@ -10,7 +10,7 @@ from feeds.models import *
# see Command definition at the end
# this mechanism isn't robust yet b/c any small sets get parsed repeatedly
-MIN_SET_SIZE = 1 # Need to find at least this many images for each set
+MIN_SET_SIZE = 3 # Need to find at least this many images for each set
###############################################################################
def scrape_pics_from_html(pset, html):
@@ -94,7 +94,8 @@ def scrape_pics_acidcow(pset):
if(len(pics) < MIN_SET_SIZE):
print "Didn't find enough pictures to save this set (found " + \
str(len(pics)) + ", MIN_SET_SIZE=" + str(MIN_SET_SIZE) + ")"
- pset.delete()
+ pset.is_valid = False
+ pset.save()
return
# TODO: oh boy, serial, this is a horrible way to do it!