diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-13 13:15:32 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-13 13:15:32 +0300 |
| commit | e4dd604e0fb47d48cb357ef0870d82c906d44a6f (patch) | |
| tree | 792721d8b3e5248178fa42ddd35b2b5dec0a6ba7 /reset_database.py | |
| parent | c26169e2d0663d21644d78a1da1348b80f9dff4d (diff) | |
| download | csca5028-e4dd604e0fb47d48cb357ef0870d82c906d44a6f.tar.gz csca5028-e4dd604e0fb47d48cb357ef0870d82c906d44a6f.zip | |
Remove the reset_database script
Diffstat (limited to 'reset_database.py')
| -rwxr-xr-x | reset_database.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/reset_database.py b/reset_database.py deleted file mode 100755 index 0c0d15a..0000000 --- a/reset_database.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python - -from time import sleep -from components.database import subscriptions -from components.subscriptions.main import Subscription -from components.videos import VideoTuple - -subscriptions.delete_many({}) -# for short_id in ['fiwzLy-8yKzIbsmZTzxDgw', 'Ef0-WZoqYFzLZtx43KPvag', -# 'PF-oYb2-xN5FbCXy0167Gg', 'hlgI3UHCOnwUGzWzbJ3H5w', ]: -# sub = Subscription( -# _id='yt:channel:'+short_id, -# link='http://www.youtube.com/feeds/videos.xml?channel_id=UC'+short_id, -# time_between_fetches=300, -# ) -# sub.insert() |
