Skip to content

Commit

Permalink
If it already exists, always save when checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Carroll committed Feb 27, 2011
1 parent c67d423 commit 53ba0a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions urlimaging/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def get_image(self, image):
if it's been used by either using the last-modified header saved from a previous
request, or if that doesn't exist, it compares a hash of the file's contents """
image.last_checked = datetime.datetime.now()
# if it exists, always save here that it's been checked
if image.id: image.save()

request = urllib2.Request(self.url)

Expand Down

0 comments on commit 53ba0a9

Please sign in to comment.