diff --git a/pronotepy/dataClasses.py b/pronotepy/dataClasses.py index 1cddbdc..7deba4b 100644 --- a/pronotepy/dataClasses.py +++ b/pronotepy/dataClasses.py @@ -761,7 +761,8 @@ def __init__(self, client: ClientBase, json_dict: dict) -> None: self.type: int = self._resolver(int, "G") # 0 link, 1 file if self.type == 0: - self.url = self.name + url = self._resolver(str, "url", default=None) + self.url: str = self.name if url is None else url else: padd = Padding.pad( json.dumps({"N": self.id, "Actif": True}).replace(" ", "").encode(), 16