Skip to content
Merged
Show file tree
Hide file tree
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: 5 additions & 1 deletion src/external/internet_archives/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@

async def _save_url(self, url: str) -> int:
async with self.session.post(
f"http://web.archive.org/save/{url}",
f"http://web.archive.org/save",

Check warning on line 85 in src/external/internet_archives/client.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] src/external/internet_archives/client.py#L85 <541>

f-string is missing placeholders
Raw output
./src/external/internet_archives/client.py:85:13: F541 f-string is missing placeholders
json={
"url": url,
"skip_first_archive": 1
},
headers={
"Authorization": f"LOW {self.s3_keys}"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/external/internet_archive/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from src.external.internet_archives.client import InternetArchivesClient

BASE_URL = "example.com"
BASE_URL = "https://www.muckrock.com/foi/allegheny-county-306/policy-documents-170293/"

@pytest.mark.asyncio
async def test_upload():
Expand Down