Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def store_text_in_db(user_id, text):
|
|
| 101 |
new_text_ref = ref.push()
|
| 102 |
new_text_ref.set({
|
| 103 |
'text': text,
|
| 104 |
-
'timestamp': firebase_admin.db.ServerValue.TIMESTAMP
|
| 105 |
})
|
| 106 |
st.success("Text saved successfully!")
|
| 107 |
except Exception as e:
|
|
|
|
| 101 |
new_text_ref = ref.push()
|
| 102 |
new_text_ref.set({
|
| 103 |
'text': text,
|
| 104 |
+
'timestamp': firebase_admin.db.SERVER_TIMESTAMP # Use SERVER_TIMESTAMP instead of ServerValue.TIMESTAMP
|
| 105 |
})
|
| 106 |
st.success("Text saved successfully!")
|
| 107 |
except Exception as e:
|