yf_yzl hace 2 años
padre
commit
4d14ed4c8a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/apply_weather.py

+ 1 - 1
apps/apply_weather.py

@@ -73,7 +73,7 @@ class GetWeather(APIView):
                     sql = """
                         select id from district where city = ?
                     """
-                    cursor.execute(sql, province)
+                    cursor.execute(sql, (province,))
                     provincd_id = cursor.fetchone()
                     day_data_id = f"{provincd_id}0100000000"
                     sql = """