Add to rider cache rider's current location. #535

This commit is contained in:
Korina Cordero 2021-02-11 08:48:53 +00:00
parent c2fcf00249
commit 903a8bd3f7

View file

@ -68,3 +68,6 @@ def on_message(client, userdata, message):
#print payload
client.publish(channel, payload)
# add to rider_cache rider's latest location
redis_conn.geoadd('loc_rider_active', rider_log, rider_lat, rider_id)