Click here to Skip to main content
15,171,993 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm writing an app in Python that used Firestore/Firebase! I've got the database all set up. Now I've managed to add an account number into the database see below. Now each time the program runs it just writes over the already added account number! I don't know what to do!

doc_ref = db.collection(u'Clients').document(u'Teen Savings Account')
                doc_ref.set({
                    u'Account Number': accnumberr
                })


Here is what my database looks like! Database

What I have tried:

I've tried using push() so
Python
doc_ref.push().set({...}) but it just gave me an error!
Posted
Updated 29-Apr-21 22:34pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900