Skip to content

Commit

Permalink
Count likes from graph api
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jul 9, 2012
1 parent 94f2eb2 commit 021221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/update_likes.py
Expand Up @@ -38,7 +38,7 @@
#print bool(likes)
#message = ["Likes not updated", "null", article.id, article.slug, datetime.datetime.now(), "\n"]
message = None
if likes:
if likes and int(likes) != int(article.likes):
article.update_record(likes=likes)
message = ["Likes updated", likes, article.id, article.slug, datetime.datetime.now(), "\n"]
except Exception, e:
Expand Down

0 comments on commit 021221e

Please sign in to comment.