Skip to content

Commit

Permalink
async 원복, image base 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kkanggu committed Dec 31, 2023
1 parent 132e5b9 commit 1cdfa63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.12
FROM python:3.10.12-slim

WORKDIR /app/
COPY ./ /app/
Expand Down
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 *

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

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

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

def smart_campus_controller(smart_campus_req: SmartCampusReq):
async 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

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

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

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

0 comments on commit 1cdfa63

Please sign in to comment.