Spaces:
Runtime error
Runtime error
Commit
·
0d9b16c
1
Parent(s):
28ee38b
Update Database.py
Browse files- Database.py +2 -0
Database.py
CHANGED
|
@@ -114,6 +114,8 @@ def LabelingFeedback():
|
|
| 114 |
semphoreFeedback.acquire()
|
| 115 |
feedback=queuedUnLabeledFeedbacks.pop(0)
|
| 116 |
tmpdict=models.getlabelfeedback(feedback.feedback)
|
|
|
|
|
|
|
| 117 |
|
| 118 |
thread = threading.Thread(target=summrizedshakwas)
|
| 119 |
thread.start()
|
|
|
|
| 114 |
semphoreFeedback.acquire()
|
| 115 |
feedback=queuedUnLabeledFeedbacks.pop(0)
|
| 116 |
tmpdict=models.getlabelfeedback(feedback.feedback)
|
| 117 |
+
feedback.label=tmpdict["label"]
|
| 118 |
+
db.collection("feedbacks").document(feedback.id).update(tmpdict)
|
| 119 |
|
| 120 |
thread = threading.Thread(target=summrizedshakwas)
|
| 121 |
thread.start()
|