From 8fd50095537d4c7970fe218e49570367d601d176 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 5 Jan 2024 02:53:37 +0100 Subject: [PATCH] [foursquare] Proper cast to number for db variables which may be strings. --- platypush/plugins/foursquare/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/foursquare/__init__.py b/platypush/plugins/foursquare/__init__.py index 06ba0b1b9..7b1aaee60 100644 --- a/platypush/plugins/foursquare/__init__.py +++ b/platypush/plugins/foursquare/__init__.py @@ -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