我需要将数据推送到子元素。是否可以在“模型”节点上启动新节点。非常感谢您的帮助。
usernames = database.child("Item_features").get()
for user in usernames.each():
userid = user.key()
dtls = database.child("Item_features").child(userid).child('model').get().val()
if dtls == imodel:
data = {"left": left}
database.child("Item_features").child(userid).child('model'),child("left").push(data)
data = {"right": right}
database.child("Item_features").child(userid).child('model').child("right").push(data)