Pmuscat41 commited on
Commit
518528d
1 Parent(s): df7334e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,9 +20,9 @@ option = st.sidebar.radio(
20
 
21
  # Function to add days to a Hijri date
22
  def add_hijri_days(hijri_date, days):
23
- jd = hijri_date.to_julian_day()
24
  new_jd = jd + days
25
- new_hijri_date = Hijri.from_julian_day(new_jd)
26
  return new_hijri_date
27
 
28
  # Function to add months to a Hijri date
 
20
 
21
  # Function to add days to a Hijri date
22
  def add_hijri_days(hijri_date, days):
23
+ jd = hijri_date.to_jd()
24
  new_jd = jd + days
25
+ new_hijri_date = Hijri.from_jd(new_jd)
26
  return new_hijri_date
27
 
28
  # Function to add months to a Hijri date