def get_concurrent(bucket: str) -> Any: now = time.time() bucket = '{}{}'.format(ratelimit_prefix, bucket) return rds.zcount(bucket, '({:f}'.format(now), '+inf')
def get_concurrent(bucket: str) -> Any: now = time.time() bucket = "{}{}".format(ratelimit_prefix, bucket) return rds.zcount(bucket, "({:f}".format(now), "+inf")