springwater commited on
Commit
9e774ad
Β·
verified Β·
1 Parent(s): e210fc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -128,7 +128,7 @@ def get_lunar_info(solYear, solMonth, solDay, solHour):
128
  else:
129
  return {"Error": "API ν˜ΈμΆœμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€."}, "정보 μ—†μŒ", "<p>API ν˜ΈμΆœμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.</p>"
130
 
131
- def get_lunar_info_for_two_people(solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2):
132
  print(solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2)
133
 
134
  rst1 = get_lunar_info(solYear, solMonth, solDay, solHour)
@@ -138,7 +138,7 @@ def get_lunar_info_for_two_people(solYear, solMonth, solDay, solHour, solYear2,
138
 
139
  #ꢁ합
140
  # 두 μ‚¬λžŒμ˜ ꢁ합 뢄석
141
- compatibility = analyze_character_two(rst1[1], rst2[1])
142
 
143
  return rst1[0], rst1[1], rst1[2], rst2[0], rst2[1], rst2[2], compatibility
144
 
 
128
  else:
129
  return {"Error": "API ν˜ΈμΆœμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€."}, "정보 μ—†μŒ", "<p>API ν˜ΈμΆœμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.</p>"
130
 
131
+ def get_lunar_info_for_two_people(solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2, OPEN_API_KEY):
132
  print(solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2)
133
 
134
  rst1 = get_lunar_info(solYear, solMonth, solDay, solHour)
 
138
 
139
  #ꢁ합
140
  # 두 μ‚¬λžŒμ˜ ꢁ합 뢄석
141
+ compatibility = analyze_character_two(rst1[1], rst2[1], OPEN_API_KEY)
142
 
143
  return rst1[0], rst1[1], rst1[2], rst2[0], rst2[1], rst2[2], compatibility
144