From 48dc3837b5440740e05f57673425bfaf31150840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Nov 2017 15:09:13 +0100 Subject: [PATCH] cloud_share_img.py: stop using my personal hardcoded IDs --- cloud_share_img.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cloud_share_img.py b/cloud_share_img.py index 1081a3a..0f6c462 100755 --- a/cloud_share_img.py +++ b/cloud_share_img.py @@ -109,14 +109,10 @@ def find_image_sharing_group_id(home_project_id, user_id) -> str: def upload_image(): - # user_id = find_user_id() - # home_proj = find_home_project() - # home_project_id = home_proj['_id'] - # group_id = find_image_sharing_group_id(home_project_id, user_id) - - user_id = '564cf2b1c379cf10c4aaceaf' - home_project_id = '577278e5c379cf03400ffb1e' - group_id = '5785f33bc379cf31436a5c20' + user_id = find_user_id() + home_proj = find_home_project() + home_project_id = home_proj['_id'] + group_id = find_image_sharing_group_id(home_project_id, user_id) basename = os.path.basename(cli.imgfile) print('Sharing group ID is %s' % group_id)