Skip to content
Permalink
Browse files

Added old listing deleter

  • Loading branch information
jacksongs committed Mar 12, 2015
1 parent df9daf8 commit 13158b757f4f3b6fd47870726daac626622145e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 scraper.py
@@ -209,8 +209,9 @@
if len(snatch)>0:
scraperwiki.sqlite.save(unique_keys=[],data=listing,table_name='listings')

# and if they haven't changed, let's do nothing! (just make sure your other system is grabbing this regularly!)
# and if they haven't changed, let's delete the listing (just make sure your other system is grabbing this regularly!)
else:
scraperwiki.sqlite.execute("delete from listings where link=?",listing["Link"])
pass

except Exception as e:

0 comments on commit 13158b7

Please sign in to comment.
You can’t perform that action at this time.