Skip to content

Commit

Permalink
fix: main 현재 상태 반영 및 import 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminseo0923 committed Dec 11, 2023
1 parent a9dcbbd commit d21decb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion notice/common/control_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from sqlalchemy.orm import Session

import configuration
from notification import Notification
from notice.common.notification import Notification


def update_notification(header: str, data: Notification, session: Session, s3: BaseClient, table: Table):
Expand Down
7 changes: 2 additions & 5 deletions notice/computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@

from fastapi.responses import JSONResponse

from control_db import update_notification
from notification import Notification
import logging
from notice.common.control_db import update_notification
from notice.common.notification import Notification

logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
URL = "http://cse.ssu.ac.kr/03_sub/01_sub.htm"

db_url = sqlalchemy.engine.URL.create(
Expand Down
4 changes: 2 additions & 2 deletions notice/ssu_catch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from fastapi.responses import JSONResponse
import boto3

from common.control_db import update_notification
from common.notification import Notification
from notice.common.control_db import update_notification
from notice.common.notification import Notification

URL = "https://scatch.ssu.ac.kr/%ea%b3%b5%ec%a7%80%ec%82%ac%ed%95%ad"

Expand Down

0 comments on commit d21decb

Please sign in to comment.