Skip to content

Commit

Permalink
async 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
kkanggu committed Dec 31, 2023
1 parent 68177c4 commit 132e5b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lambda_function.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from model.req_models import *

async def lambda_handler(event, context):
def lambda_handler(event, context):
body = json.loads(event['body'])
function_name = body['function']

Expand All @@ -26,39 +26,39 @@ async def lambda_handler(event, context):
'body': result
}

async def auth_controller(user_info: UserInfo):
def auth_controller(user_info: UserInfo):
"""
현재 정상 이용 가능합니다.
"""
from smart_campus.auth_token import get_auth_token
result = get_auth_token(user_info)
return result

async def smart_campus_controller(smart_campus_req: SmartCampusReq):
def smart_campus_controller(smart_campus_req: SmartCampusReq):
"""
현재 정상 이용 가능합니다.
"""
from smart_campus.smart_campus import smart_campus_crawling
result = smart_campus_crawling(smart_campus_req.token, smart_campus_req.student_id)
return result

async def fun_system_controller():
def fun_system_controller():
"""
현재 정상 이용 가능합니다.
"""
from fun_system.fun_system import fun_system_crawling
result = fun_system_crawling()
return result

async def ssu_catch_controller():
def ssu_catch_controller():
"""
현재 정상 이용 가능합니다.
"""
from notice.ssu_catch import ssu_catch_crawling
result = ssu_catch_crawling()
return result

async def computer_department_controller():
def computer_department_controller():
"""
현재 정상 이용 가능합니다.
"""
Expand Down

0 comments on commit 132e5b9

Please sign in to comment.