disable update json cache

This commit is contained in:
virusdefender 2018-05-05 22:42:03 +08:00
parent 831a3ec013
commit c9563506ef

View File

@ -4,6 +4,7 @@ import os
import re
import shutil
import smtplib
import time
from datetime import datetime
import pytz
@ -208,7 +209,7 @@ class TestCasePruneAPI(APIView):
class ReleaseNotesAPI(APIView):
def get(self, request):
try:
resp = requests.get("https://raw.githubusercontent.com/QingdaoU/OnlineJudge/master/docs/data.json",
resp = requests.get("https://raw.githubusercontent.com/QingdaoU/OnlineJudge/master/docs/data.json?_=" + str(time.time()),
timeout=3)
releases = resp.json()
except (RequestException, ValueError):