title: transfer data between databases - influx-python
body: <p>I am trying to write points that been taken from one database to another (influxdb-python), I have created a list of dict, and I am using write_points('list of dicts'). I even tried to simplify things by getting only 2 points.</p>
  
  <p>here is my code and the errors, pls help</p>
  
  <pre><code>rs = cli.query("""SELECT * FROM cpu_value WHERE time &gt; now() - 2s""")
  points = rs.get_points()
  a=next(points)
  b=next(points)
  temp=[]
  temp.append(a)
  temp.append(b)
  
  client = InfluxDBClient(database='test')
  
  client.write_points(temp)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/eRUIb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRUIb.png" alt="enter image description here"></a></p>