Bargerya commited on
Commit
839f058
β€’
1 Parent(s): 2498233

beta V0.96

Browse files

fix if leap month exists θ™•η†ι–ζœˆζœ‰ιŒ―ηš„ bug

Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -406,6 +406,13 @@ def GWAI(year, month, day, btime, sex) -> datetime:
406
  my_year = match.group(1)
407
  my_month = match.group(2)
408
  my_day = match.group(3)
 
 
 
 
 
 
 
409
 
410
  pssex = 2
411
  if sex == 'η”·' or sex == 'η”·η”Ÿ' or sex == 'Male' or sex == 'male' or sex == 'M' or sex == 'm' or sex == 'Boy' or sex == 'boy' or sex == '1':
 
406
  my_year = match.group(1)
407
  my_month = match.group(2)
408
  my_day = match.group(3)
409
+ print("- leap no -")
410
+ else:
411
+ match = re.search(r'(\d+)εΉ΄ι—°(\d+)月(\d+)ζ—₯', output)
412
+ my_year = match.group(1)
413
+ my_month = match.group(2)
414
+ my_day = match.group(3)
415
+ print("- leap yes -")
416
 
417
  pssex = 2
418
  if sex == 'η”·' or sex == 'η”·η”Ÿ' or sex == 'Male' or sex == 'male' or sex == 'M' or sex == 'm' or sex == 'Boy' or sex == 'boy' or sex == '1':