diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-05 05:34:05 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-05 05:34:05 +0300 |
| commit | 66194a36af3d1f6897e8fd0e3b61388cb18f6e1f (patch) | |
| tree | 44e0d50223ff86548027cafc678c4562406a7b8a /components | |
| parent | 9f1f86c25f26f0d38244866870bbe016ebdb82d7 (diff) | |
| download | csca5028-66194a36af3d1f6897e8fd0e3b61388cb18f6e1f.tar.gz csca5028-66194a36af3d1f6897e8fd0e3b61388cb18f6e1f.zip | |
Add a subscriptions function to update videos
Diffstat (limited to 'components')
| -rw-r--r-- | components/subscriptions/main.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/subscriptions/main.py b/components/subscriptions/main.py index 715447e..36e6d15 100644 --- a/components/subscriptions/main.py +++ b/components/subscriptions/main.py @@ -75,3 +75,9 @@ class Subscription: {"_id": self._id}, {"$set": updated_values}, ) + + def update_videos(self) -> UpdateResult: + return self._collection.update_one( + {"_id": self._id}, + {"$set": {"videos": self.videos}} + ) |
