MahmoudNasser commited on
Commit
eff22c3
·
1 Parent(s): 580a9b3

Update Database.py

Browse files
Files changed (1) hide show
  1. Database.py +1 -1
Database.py CHANGED
@@ -62,7 +62,7 @@ def shakwa_common_words():
62
  else:
63
  most_common_words[word] = 1
64
  most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
65
- db.collection("per_day_common_words").document(str(datetime.today().date())).add(dict(most_common_words))
66
 
67
 
68
  def feedback_common_words():
 
62
  else:
63
  most_common_words[word] = 1
64
  most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
65
+ db.collection("per_day_common_words").document(str(datetime.today().date())).set(dict(most_common_words))
66
 
67
 
68
  def feedback_common_words():