Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Count likes from graph api

  • Loading branch information...
commit 021221e0e84a08a7ebb83fef91d01d0620df3360 1 parent 94f2eb2
@rochacbruno authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  private/update_likes.py
View
2  private/update_likes.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.