yf_yzl 2 лет назад
Родитель
Сommit
4d14ed4c8a
1 измененных файлов с 1 добавлено и 1 удалено
  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 = """