From 63662145af4487bc026e6cd906766a95817d46fb Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 1 May 2014 01:18:37 +0000 Subject: fixed Flickr issues and photo template settings --- app/builder/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/builder') diff --git a/app/builder/views.py b/app/builder/views.py index f266cb8..ca1296f 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -61,12 +61,17 @@ def do_build(request): elif section == 'home': BuildWriting().build_homepage() context = {'message': 'Writing Homepage to Disk',} + #Crawl Flickr for new Photosets + elif section == 'scrapeflickr': + from photos import retriever + retriever.sync_sets() + context = {'message': 'Crawling Flickr for new photosets',} """ elif section == 'all': g.build_entire_site() context = {'message': 'Writing Entire Site to disk',} """ - + else: context = {} #return redirect('/admin/', message='test') -- cgit v1.2.3-70-g09d2