aboutsummaryrefslogtreecommitdiff
path: root/user.py
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2021-07-04 13:09:19 +0200
committergabrielgio <gabriel.giovanini@pm.me>2021-07-04 13:09:19 +0200
commit6887fcc0e42b1a64ed80f8565fe3099aaa818930 (patch)
tree0a387da1cf93be2221c2534febbe315149672286 /user.py
parente04d89a1278f66c15be9cadb6ab524dbb878efd8 (diff)
downloadreddit-nextcloud-importer-6887fcc0e42b1a64ed80f8565fe3099aaa818930.tar.gz
reddit-nextcloud-importer-6887fcc0e42b1a64ed80f8565fe3099aaa818930.tar.bz2
reddit-nextcloud-importer-6887fcc0e42b1a64ed80f8565fe3099aaa818930.zip
feat: Remove initial process
Remove the process that downloads all the saved images. Now it only downloads the latest 100 and keeps watching for new saves.
Diffstat (limited to 'user.py')
-rw-r--r--user.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/user.py b/user.py
index e386c2d..a12cb59 100644
--- a/user.py
+++ b/user.py
@@ -38,9 +38,6 @@ if __name__ == "__main__":
nxc.upload_file(path, f"im/{post.subreddit}/{path}")
- for post in redditor.saved(limit=None):
- uplaod(post)
-
sleep(60)
generator = stream_generator(redditor.saved, attribute_name="name")