mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
disable update json cache
This commit is contained in:
parent
831a3ec013
commit
c9563506ef
@ -4,6 +4,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import smtplib
|
import smtplib
|
||||||
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import pytz
|
import pytz
|
||||||
@ -208,7 +209,7 @@ class TestCasePruneAPI(APIView):
|
|||||||
class ReleaseNotesAPI(APIView):
|
class ReleaseNotesAPI(APIView):
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
try:
|
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)
|
timeout=3)
|
||||||
releases = resp.json()
|
releases = resp.json()
|
||||||
except (RequestException, ValueError):
|
except (RequestException, ValueError):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user