Skip to content

Commit

Permalink
Include deprecated models in file server
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Nov 8, 2024
1 parent 5fa11e8 commit f6b4bd0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/file_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ def url_strip(url: str):

files = {
url_unquote(url_strip(url)): dir / filepath
for m in resources.all_models()
for m in resources.all_models(include_deprecated=True)
for filepath, url in m.files.items()
}

urls = [url_strip(url) for m in resources.all_models() for _, url in m.files.items()]
urls = [
url_strip(url)
for m in resources.all_models(include_deprecated=True)
for _, url in m.files.items()
]


async def file_sender(file: Path):
Expand Down

0 comments on commit f6b4bd0

Please sign in to comment.