Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

final standings #89

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Pages/CFStandings/CfStandings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function pullData(message, time) {
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
const res = await fetch(
`https://codeforces.com/api/contest.standings?contestId=563188&apiKey=${key}&time=${time}&apiSig=123456<${hashHex}>`
`https://codeforces.com/api/contest.standings?contestId=564294&apiKey=${key}&time=${time}&apiSig=123456<${hashHex}>`
);
if (!res.ok) throw new Error("Network response was not ok");
return res.json();
Expand Down Expand Up @@ -42,7 +42,7 @@ const CfStandings = () => {

const Wrapper = () => {
const nowTime = Math.floor(Date.now() / 1000);
const code = `123456/contest.standings?apiKey=${key}&contestId=563188&time=${nowTime}#${secret}`;
const code = `123456/contest.standings?apiKey=${key}&contestId=564294&time=${nowTime}#${secret}`;
const { isLoading, error, data } = useQuery({
queryKey: ["repoData"],
queryFn: () => pullData(code, nowTime),
Expand Down Expand Up @@ -76,7 +76,7 @@ const Wrapper = () => {
return (
<div className={styles.wrapper}>
<div className={styles.headerCont}>
<h1 className={styles.header}>prelims standings</h1>
<h1 className={styles.header}>finals standings</h1>
</div>
<div className={styles.inputCont}>
<input
Expand Down
Loading