|
|
@@ -127,7 +127,7 @@ class HistoryAPIView(APIView):
|
|
|
return Response({"msg": "暂无数据", "code": 500})
|
|
|
# 去历史表中查询数据
|
|
|
try:
|
|
|
- history_data = HistoryData.objects.get(cityid=cityid, timestamp=timestamp)
|
|
|
+ history_data = HistoryData.objects.get(cityid=cityid, timestamp=int(timestamp))
|
|
|
content = history_data.content
|
|
|
low_heigh = json.loads(content)
|
|
|
return Response(
|