yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
4d14ed4c8a
Modificáronse 1 ficheiros con 1 adicións e 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 = """