rupeshs commited on
Commit
b7a4edb
·
1 Parent(s): 4d29935

Added emojis

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -34,21 +34,21 @@ def get_moon_phase(date: datetime.date) -> str:
34
  phase = moon.phase
35
 
36
  if 0 <= phase < 12.5:
37
- phase_name = "New Moon"
38
  elif 12.5 <= phase < 25:
39
- phase_name = "Waxing Crescent"
40
  elif 25 <= phase < 37.5:
41
- phase_name = "First Quarter"
42
  elif 37.5 <= phase < 50:
43
- phase_name = "Waxing Gibbous"
44
  elif 50 <= phase < 62.5:
45
- phase_name = "Full Moon"
46
  elif 62.5 <= phase < 75:
47
- phase_name = "Waning Gibbous"
48
  elif 75 <= phase < 87.5:
49
- phase_name = "Third Quarter"
50
  elif 87.5 <= phase <= 100:
51
- phase_name = "Waning Crescent"
52
  else:
53
  phase_name = "Unknown"
54
 
 
34
  phase = moon.phase
35
 
36
  if 0 <= phase < 12.5:
37
+ phase_name = "New Moon 🌑"
38
  elif 12.5 <= phase < 25:
39
+ phase_name = "Waxing Crescent 🌒"
40
  elif 25 <= phase < 37.5:
41
+ phase_name = "First Quarter 🌓"
42
  elif 37.5 <= phase < 50:
43
+ phase_name = "Waxing Gibbous 🌔"
44
  elif 50 <= phase < 62.5:
45
+ phase_name = "Full Moon 🌕"
46
  elif 62.5 <= phase < 75:
47
+ phase_name = "Waning Gibbous 🌖"
48
  elif 75 <= phase < 87.5:
49
+ phase_name = "Third Quarter 🌗"
50
  elif 87.5 <= phase <= 100:
51
+ phase_name = "Waning Crescent 🌘"
52
  else:
53
  phase_name = "Unknown"
54