To make the code cleaner, I save the database references in a variable. However, this may lead to my entire database being deleted.
If I do NOT query the value from the database before "set ('test')", everything works as expected. If the value is loaded from the database beforehand, the complete database is deleted after "set". If only the value is queried from the database, nothing is deleted either.
To make the code cleaner, I save the database references in a variable. However, this may lead to my entire database being deleted.
If I do NOT query the value from the database before "set ('test')", everything works as expected. If the value is loaded from the database beforehand, the complete database is deleted after "set". If only the value is queried from the database, nothing is deleted either.
Python version: 3.7.4 Pyrebase4 version: 4.5.0
This code deletes the database:
And this works fine:
After the "deletion" my database looks like this:![database_empty](https://user-images.githubusercontent.com/70335472/142926463-939dcc58-7f7a-4a9f-a4dc-13d1d902584d.png)