aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2016-08-09 14:31:24 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2016-08-09 14:31:24 +0200
commitf78ce1f50242c7d356de9dbc8cbc96c86a506152 (patch)
tree76eff9304711acbe09f7b246aef66446328e7db5
parent64879d1a26ed3ed5847048ad6908b3dfbed16572 (diff)
more ayat for default query, increase cache time
-rw-r--r--bismillah.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bismillah.py b/bismillah.py
index 6d0a683..82b0738 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -100,8 +100,8 @@ def send_file(bot, filename, quran_type, **kwargs):
def get_default_query_results(quran):
results = []
ayat = [
- (13, 28), (33, 56), (2, 62), (10, 31), (17, 36), (5, 32), (39, 9), (17, 44),
- (7, 57), (3, 7), (2, 255), (57, 20), (49, 12), (16, 125), (24, 35)
+ (13, 28), (33, 56), (2, 62), (10, 31), (17, 36), (5, 32), (39, 9), (17, 44), (28, 88), (17, 84), (33, 6),
+ (7, 57), (3, 7), (2, 255), (63, 9), (57, 20), (49, 12), (16, 125), (24, 35), (73, 8)
]
for s, a in ayat:
ayah = "%d:%d" % (s, a)
@@ -182,7 +182,7 @@ def serve(bot, data):
query_id = update.inline_query.id
query = update.inline_query.query
results = []
- cache_time = 7 * (60 ** 2 * 24)
+ cache_time = 66 * (60 ** 2 * 24)
s, a = parse_ayah(query)
if s is not None and Quran.exists(s, a):
ayah = "%d:%d" % (s, a)