-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
59 lines (55 loc) · 1.27 KB
/
Copy pathmain.py
File metadata and controls
59 lines (55 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from datetime import date
mesekhtot = {
"Berakhot": 63,
"Shabbat": 156,
"Eruvin": 104,
"Pesahim": 120,
"Shekalim": 21,
"Yoma": 87,
"Sukkah": 55,
"Beitzah": 39,
"Rosh Hashana": 34,
"Taanit": 30,
"Megilah": 31,
"Moed Katan": 28,
"Hagigah": 26,
"Yevamot": 121,
"Ketuvot": 111,
"Nedarim": 90,
"Nazir": 65,
"Sotah": 48,
"Gittin": 89,
"Kiddushin": 81,
"Bava Kamma": 118,
"Bava Metzia": 118,
"Bava Batra": 175,
"Sanhedrin": 112,
"Makkot": 23,
"Shevuot": 48,
"Avoda Zara": 75,
"Horiyot": 13,
"Zevachim":119,
"Menahot": 109,
"Hulin": 141,
"Bekhorot": 60,
"Arakhin": 33,
"Temurah": 33,
"Keratot": 27,
"Meilah": 21,
"Middot": 3,
"Kinnim": 4,
"Tamid": 8,
"Niddah": 71
}
first_cycle, cur = date(1923,9,23), date.today()
days_since = cur-first_cycle
days_since = days_since.days
total_dapim = sum(mesekhtot.values())
dapim_in_current_cycle = days_since%total_dapim+63
# print(dapim_in_current_cycle)
for mesekhta,pages in mesekhtot.items():
if dapim_in_current_cycle < pages:
print("Today's Daf is " + mesekhta,dapim_in_current_cycle+1)
break
dapim_in_current_cycle = dapim_in_current_cycle-pages
# print(sum(mesekhtot.values()))