mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
disable update json cache
This commit is contained in:
parent
831a3ec013
commit
c9563506ef
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user