[foursquare] Proper cast to number for db variables which may be strings.

This commit is contained in:
Fabio Manganiello 2024-01-05 02:53:37 +01:00
parent 5167597ace
commit 8fd5009553
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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