mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Add download strategies to save bandwith
Only download files that are newer than the local version.
This commit is contained in:
parent
13bc78c889
commit
076b8c5a1f
4 changed files with 93 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import datetime
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
|
||||
import bs4
|
||||
import requests
|
||||
|
|
@ -26,7 +26,7 @@ class IliasDownloadInfo(Transformable):
|
|||
"""
|
||||
|
||||
url: str
|
||||
modification_date: datetime.datetime
|
||||
modification_date: Optional[datetime.datetime]
|
||||
# parameters: Dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue