youssef1214 commited on
Commit
8d15e82
·
1 Parent(s): b377898

Update Database.py

Browse files
Files changed (1) hide show
  1. Database.py +1 -2
Database.py CHANGED
@@ -63,7 +63,6 @@ def shakwa_common_words():
63
  else:
64
  most_common_words[word] = 1
65
  most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
66
- print(most_common_words)
67
  db.collection("per_day_common_words").document(str(datetime.today().date())).set(dict(most_common_words))
68
 
69
 
@@ -157,4 +156,4 @@ def on_snapshotfeedback(doc_snapshot, changes, read_time):
157
 
158
  callback_donefeedback.set()
159
  docwatch= db.collection("complaints").on_snapshot(on_snapshot,)
160
- docwatch2=db.collection("feedbacks") .on_snapshot(on_snapshotfeedback,)
 
63
  else:
64
  most_common_words[word] = 1
65
  most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
 
66
  db.collection("per_day_common_words").document(str(datetime.today().date())).set(dict(most_common_words))
67
 
68
 
 
156
 
157
  callback_donefeedback.set()
158
  docwatch= db.collection("complaints").on_snapshot(on_snapshot,)
159
+ docwatch2=db.collection("feedbacks") .on_snapshot(on_snapshotfeedback,)