summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-22 11:49:37 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-22 11:49:37 +0700
commit9f916d880c5d061ee2ba66a80d26fbca76355054 (patch)
tree5aa97f052dec34b827a79cff096203dac0193cf1
parenta1862d78377710020c40361401af79766ea9ca70 (diff)
<Miqdad> fix sj tele message sent multiple chat bubble with same message
-rw-r--r--indoteknik_custom/models/sj_tele.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sj_tele.py b/indoteknik_custom/models/sj_tele.py
index d3d7dfce..53ba26fc 100644
--- a/indoteknik_custom/models/sj_tele.py
+++ b/indoteknik_custom/models/sj_tele.py
@@ -28,7 +28,9 @@ class SjTele(models.Model):
# chat_id_testing = '-4920864331'
# api_testing = f'https://api.telegram.org/bot{bot_testing}'
+ # Select Data
data = self.search([('is_sent', '=', False)], order='create_date asc')
+
# Old
# data = self.search([], order='create_date asc')