nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
248 stars 61 forks source link

Unable to dynamically assign db collections path #61

Open anbuchelva opened 1 year ago

anbuchelva commented 1 year ago

Make sure these boxes are checked before submitting your issue:

[x] Check that your version of Python is 3.4+ [x] Check that you are on the newest version of Pyrebase [] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

Please don't be discouraged if you do not get a response to your issue quickly, I maintain Pyrebase for fun and don't always have as much free time as I'd like.

Thank you for helping make Pyrebase better!


I tried to get the existing values from the firebase db using this following code, which works fine.

existing_data = db.child('account_group').child(new_member).get().val()

However, if i change it to dynamically assign the path of db it doesn't work.

member_path = db.child('account_group')
existing_data = member_path.child(new_member).get().val()

Is there a way to fix?