def get_online_users(guest=False):
 current = (int(time.time()) // 60)
 minutes = range_method(flaskbb_config['ONLINE_LAST_MINUTES'])
 if guest:
  return redis_store.sunion([('online-guests/%d' % (current - x)) for x in minutes])
 return redis_store.sunion([('online-users/%d' % (current - x)) for x in minutes])

def get_online_users ( guest = False ) : current = ( int ( time . time ( ) ) // 60 ) minutes = range_method ( flaskbb_config [ 'ONLINE_LAST_MINUTES' ] ) if guest : return redis_store . sunion ( [ ( 'online-guests/%d' % ( current - x ) ) for x in minutes ] ) return redis_store . sunion ( [ ( 'online-users/%d' % ( current - x ) ) for x in minutes ] )
returns all online users within a specified time range .