Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guanyilun committed Jan 28, 2024
1 parent 380be5a commit 37b2246
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/arxiv-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: data/summary.md
filename: data/latest.md
13 changes: 7 additions & 6 deletions scripts/digest_tldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ def digest_tldr(
b2.upload(curr_file, curr_uri)

# also store the latest for further processing
latest_uri = f"tldr/{catname}/latest.json"
latest_file = op.join(output_dir, latest_uri)
with open(latest_file, "w") as f:
json.dump(new_tldrs, f)
logging.info(f"uploading {latest_file} to remote")
b2.upload(latest_file, latest_uri)
if len(new_tldrs) > 0:
latest_uri = f"tldr/{catname}/latest.json"
latest_file = op.join(output_dir, latest_uri)
with open(latest_file, "w") as f:
json.dump(new_tldrs, f)
logging.info(f"uploading {latest_file} to remote")
b2.upload(latest_file, latest_uri)

logging.info("Done")

Expand Down

0 comments on commit 37b2246

Please sign in to comment.