Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Jun 8, 2024
1 parent f17c374 commit 5f4246c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ jobs:
RUST_BACKTRACE: full
ATCODER_USERNAME: ${{ secrets.ATCODER_USERNAME }}
ATCODER_PASSWORD: ${{ secrets.ATCODER_PASSWORD }}
if: false # perhaps AtCoder no longer allows tests like ours

upload-archives:
strategy:
Expand Down
6 changes: 3 additions & 3 deletions src/commands/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {

let group = Group::Atcoder(crate::web::url::atcoder_contest(
outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.with_context(|| "empty result")?,
)?);
Expand Down Expand Up @@ -145,7 +145,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {

let group = Group::Codeforces(crate::web::url::codeforces_contest(
outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.with_context(|| "empty result")?,
)?);
Expand Down Expand Up @@ -208,7 +208,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {
)?;

let contest = outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.map(crate::web::url::yukicoder_contest)
.transpose()?;
Expand Down

0 comments on commit 5f4246c

Please sign in to comment.