allow match refreshing
This commit is contained in:
parent
b8183adda8
commit
984d214f13
4
hltv
4
hltv
|
@ -20,6 +20,10 @@ then
|
|||
elif [ "$QUERY_STRING" = "matches" ]
|
||||
then
|
||||
$CGI_BIN/hltv_matches
|
||||
elif [ "$QUERY_STRING" = "reload" ]
|
||||
then
|
||||
curl "https://illegaldrugs.net/skor?reload" >/dev/null
|
||||
$CGI_BIN/hltv_matches
|
||||
else
|
||||
$CGI_BIN/hltv_matches
|
||||
fi
|
||||
|
|
|
@ -81,6 +81,7 @@ live_matches = [ x for x in matches if x["start_time"] == "LIVE" ]
|
|||
upcoming_matches = [ x for x in matches if x["start_time"] != "LIVE" and x["start_time"] != "OVER" ]
|
||||
ended_matches = [ x for x in matches if x["start_time"] == "OVER" ]
|
||||
|
||||
|
||||
if len(live_matches) != 0:
|
||||
print("# LIVE")
|
||||
print_matches(live_matches)
|
||||
|
@ -94,4 +95,6 @@ if len(ended_matches) != 0:
|
|||
print("# COMPLETED")
|
||||
print_matches(ended_matches)
|
||||
|
||||
print("=> ?reload Refresh match list (only use this if a match that should be live is still in \"upcoming\")")
|
||||
|
||||
print("Powered by sk0R")
|
||||
|
|
Loading…
Reference in New Issue