When retrieving data using: db.child("my_node_name").get().. the data is not retrieved (i.e. None is returned).. unless I have pushed to that node, from the code, previously.
To replicate, try the following:
1- Manually add a node to your firebase database, call it "my_node" and put any other child node with a value in it.
2- From the code, access it using db.child("my_node").get()
3- None value will be returned
4- Now, try pushing anything to the node "my_node". For example: db.child("my_node").push({"any_key": 5.0})
5- Now, use the exact same line as 1 with db.child("my_node").get() and it will return the previously manually added value.
When retrieving data using:
db.child("my_node_name").get()
.. the data is not retrieved (i.e. None is returned).. unless I have pushed to that node, from the code, previously.To replicate, try the following: 1- Manually add a node to your firebase database, call it "my_node" and put any other child node with a value in it. 2- From the code, access it using
db.child("my_node").get()
3- None value will be returned 4- Now, try pushing anything to the node "my_node". For example:db.child("my_node").push({"any_key": 5.0})
5- Now, use the exact same line as 1 withdb.child("my_node").get()
and it will return the previously manually added value.