youssef1214
commited on
Commit
·
950c73d
1
Parent(s):
e332a5d
Update Database.py
Browse files- Database.py +2 -1
Database.py
CHANGED
@@ -64,7 +64,8 @@ def shakwa_common_words():
|
|
64 |
else:
|
65 |
most_common_words[word] = 1
|
66 |
most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
|
67 |
-
|
|
|
68 |
|
69 |
|
70 |
def feedback_common_words():
|
|
|
64 |
else:
|
65 |
most_common_words[word] = 1
|
66 |
most_common_words = sorted(most_common_words.items(), key=lambda x: x[1])
|
67 |
+
tz = pytz.timezone('EET')
|
68 |
+
db.collection("per_day_common_words").document(str(datetime.now(tz).date())).set(dict(most_common_words))
|
69 |
|
70 |
|
71 |
def feedback_common_words():
|