From 47484c2d35d1e31f11385c690259f393267e0016 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Thu, 19 Jun 2025 20:40:51 +0300 Subject: [PATCH] make datastore.get key optional. --- app/library/DataStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/library/DataStore.py b/app/library/DataStore.py index 96c64a3d..691f034f 100644 --- a/app/library/DataStore.py +++ b/app/library/DataStore.py @@ -46,7 +46,7 @@ class DataStore: return any((key and self.dict[i].info._id == key) or (url and self.dict[i].info.url == url) for i in self.dict) - def get(self, key: str, url: str | None = None) -> Download: + def get(self, key: str | None = None, url: str | None = None) -> Download: if not key and not url: msg = "key or url must be provided." raise KeyError(msg)