From 929c66297e3ef46085277693176122ea0015d7bb Mon Sep 17 00:00:00 2001 From: Digital <34419970+DigitalDwagon@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:52:04 -0400 Subject: [PATCH] feat: allow uploading into any collection --- wikiteam3/uploader/uploader.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/wikiteam3/uploader/uploader.py b/wikiteam3/uploader/uploader.py index 726cccd5..c6c4ac65 100644 --- a/wikiteam3/uploader/uploader.py +++ b/wikiteam3/uploader/uploader.py @@ -28,14 +28,6 @@ from wikiteam3.utils.util import ALL_DUMPED_MARK, UPLOADED_MARK, XMLRIVISIONS_INCREMENTAL_DUMP_MARK, is_empty_dir, mark_as_done, is_markfile_exists DEFAULT_COLLECTION = 'opensource' -TEST_COLLECTION = 'test_collection' -""" -items here are expected to be automatically removed after 30 days. -(see ) -""" -WIKITEAM_COLLECTION = 'wikiteam' -""" Only admins can add/move items to this collection. """ - IDENTIFIER_PREFIX = "wiki-" @dataclass @@ -545,7 +537,7 @@ def main(): parser.add_argument("-kf", "--keys_file", default="~/.wikiteam3_ia_keys.txt", dest="keys_file", help="Path to the IA S3 keys file. (first line: access key, second line: secret key)" " [default: ~/.wikiteam3_ia_keys.txt]") - parser.add_argument("-c", "--collection", default=DEFAULT_COLLECTION, choices=[DEFAULT_COLLECTION, TEST_COLLECTION, WIKITEAM_COLLECTION]) + parser.add_argument("-c", "--collection", default=DEFAULT_COLLECTION) parser.add_argument("--dry-run", action="store_true", help="Dry run, do not upload anything.") parser.add_argument("-u", "--update", action="store_true", help="Update existing item. [!! not implemented yet !!]")