File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,6 @@ async def run_crawlers(crawlers):
192
192
193
193
194
194
def crawl_debug (** kwargs ):
195
-
196
195
arg_date = kwargs .get ("date" )
197
196
arg_restaurant = kwargs .get ("restaurant" )
198
197
@@ -241,6 +240,7 @@ def crawl(event, context):
241
240
passwd = os .environ .get ("DB_PASSWORD" , "waffle" ),
242
241
host = os .environ .get ("DB_HOST" , "127.0.0.1" ),
243
242
db = os .environ .get ("DB_NAME" , "siksha" ),
243
+ port = os .environ .get ("DB_PORT" , 3306 ),
244
244
charset = "utf8" ,
245
245
)
246
246
cursor = siksha_db .cursor (pymysql .cursors .DictCursor )
@@ -279,7 +279,6 @@ def crawl(event, context):
279
279
280
280
281
281
if __name__ == "__main__" :
282
-
283
282
# Parse args for debug
284
283
parser = argparse .ArgumentParser (description = "debug option" )
285
284
parser .add_argument ("--restaurant" , "-r" , help = "어떤 식당? 예시)자하연" )
You can’t perform that action at this time.
0 commit comments