Skip to content

Commit

Permalink
mockdata.py updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ssn-developers authored May 21, 2020
1 parent 6633853 commit 3b2fbdc
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions mockdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,7 @@

# TODO: Replace JSON_PATH here
cred = credentials.Certificate("firebase_SA.json")
# TODO: Replace DATABASE_URL here
firebase_admin.initialize_app(cred,{
'databaseURL': 'https://test-ssnce.firebaseio.com/'
})

# firebase realtime data

ref = db.reference('/')
ref.set({

"block_screen": {
"global_chat": False,
"is_block": False,
"non_ssn_email": True,
"overall": False,

}
})

print ('firebase realtime data added successfully')

firebase_admin.initialize_app(cred)
testdb = firestore.client()

# Club collection
Expand Down Expand Up @@ -543,4 +523,4 @@

testdb.collection(u'post_club').document('novvyu37').set(data)

print ('post_club collection added successfully')
print ('post_club collection added successfully')

0 comments on commit 3b2fbdc

Please sign in to comment.