forked from platypush/platypush
[foursquare] Proper cast to number for db variables which may be strings.
This commit is contained in:
parent
5167597ace
commit
8fd5009553
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ class FoursquarePlugin(RunnablePlugin):
|
|||
|
||||
last_checkin = checkins[0]
|
||||
last_checkin_created_at = last_checkin.get('createdAt', 0)
|
||||
last_created_at = self._last_created_at.get() or 0
|
||||
last_created_at = float(self._last_created_at.get() or 0)
|
||||
if last_created_at and last_checkin_created_at <= last_created_at:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue