Skip to content

Commit f0d51ef

Browse files
committed
chore: add db port env
1 parent d206aad commit f0d51ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ async def run_crawlers(crawlers):
192192

193193

194194
def crawl_debug(**kwargs):
195-
196195
arg_date = kwargs.get("date")
197196
arg_restaurant = kwargs.get("restaurant")
198197

@@ -241,6 +240,7 @@ def crawl(event, context):
241240
passwd=os.environ.get("DB_PASSWORD", "waffle"),
242241
host=os.environ.get("DB_HOST", "127.0.0.1"),
243242
db=os.environ.get("DB_NAME", "siksha"),
243+
port=os.environ.get("DB_PORT", 3306),
244244
charset="utf8",
245245
)
246246
cursor = siksha_db.cursor(pymysql.cursors.DictCursor)
@@ -279,7 +279,6 @@ def crawl(event, context):
279279

280280

281281
if __name__ == "__main__":
282-
283282
# Parse args for debug
284283
parser = argparse.ArgumentParser(description="debug option")
285284
parser.add_argument("--restaurant", "-r", help="어떤 식당? 예시)자하연")

0 commit comments

Comments
 (0)