yf_yzl 2 lat temu
rodzic
commit
4d14ed4c8a
1 zmienionych plików z 1 dodań i 1 usunięć
  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 = """