def record_user_has_seen_notifications(user_id, last_seen_msecs):
 subscriptions_model = user_models.UserSubscriptionsModel.get(user_id, strict=False)
 if (not subscriptions_model):
  subscriptions_model = user_models.UserSubscriptionsModel(id=user_id)
 subscriptions_model.last_checked = datetime.datetime.utcfromtimestamp((last_seen_msecs / 1000.0))
 subscriptions_model.put()

def record_user_has_seen_notifications ( user_id , last_seen_msecs ) : subscriptions_model = user_models . UserSubscriptionsModel . get ( user_id , strict = False ) if ( not subscriptions_model ) : subscriptions_model = user_models . UserSubscriptionsModel ( id = user_id ) subscriptions_model . last_checked = datetime . datetime . utcfromtimestamp ( ( last_seen_msecs / 1000.0 ) ) subscriptions_model . put ( )
updates the last_checked time for this user .