beta V0.96
Browse filesfix if leap month exists θηιζζι―η bug
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':
|