Skip to content

Commit 556f15f

Browse files
committed
Removing debugging statements
Changes to be committed: modified: bco_api/api/groups.py modified: bco_api/api/scripts/method_specific/POST_api_objects_drafts_token.py modified: bco_api/api/scripts/method_specific/POST_api_objects_published.py modified: bco_api/api/scripts/utilities/DbUtils.py
1 parent e18f342 commit 556f15f

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

bco_api/api/groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def post_api_groups_info(token):
4242
"""Retrieve Group information by user
4343
4444
"""
45-
import pdb; pdb.set_trace()
45+
4646
group_list = list(Group.objects.all())#.values_list('name', flat=True))
4747
user = Token.objects.get(key = token).user
4848
username = user.username
@@ -102,7 +102,7 @@ def post_api_groups_create(request):
102102

103103

104104
if 'expiration' not in creation_object:
105-
import pdb; pdb.set_trace()
105+
106106
GroupInfo.objects.create(
107107
delete_members_on_group_deletion=bool(creation_object['delete_members_on_group_deletion']),
108108
description=creation_object['description'],

bco_api/api/scripts/method_specific/POST_api_objects_drafts_token.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
44
55
"""
6-
from bdb import set_trace
7-
import pdb
6+
87
import re
98
# Concatenating QuerySets
109
from itertools import chain
@@ -178,7 +177,6 @@ def POST_api_objects_drafts_token(rqst, internal=False):
178177
# Get the user's DRAFT objects AND
179178
# add in the published objects.
180179
# TODO: This needs to only return the most recent PUBLISHED objects not all of the versions
181-
# import pdb; pdb.set_trace()
182180

183181
published = bco.objects.filter(state='PUBLISHED').values()
184182
# unique_published = []

bco_api/api/scripts/method_specific/POST_api_objects_published.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def POST_api_objects_published():
8080
except Exception as e:
8181
print("Biocompute Name, Version, and URL not formatted as expected: {}".format(e))
8282
return Response(status=status.HTTP_400_BAD_REQUEST)
83-
import pdb; pdb.set_trace()
83+
8484
if bco_url in bcos:
8585
# Other version of this BCO object exists
8686
current_version = bcos[bco_url]["bco_version"]

bco_api/api/scripts/utilities/DbUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def publish(self, owner_group, owner_user, prefix, publishable, publishable_id):
902902
p_fields=['contents', 'last_update', 'object_id', 'owner_group', 'owner_user', 'prefix', 'schema', 'state'],
903903
p_data=publishable.contents
904904
)
905-
import pdb; pdb.set_trace()
905+
906906
# Successfully saved the object.
907907
return {
908908
'published_id': published['object_id']

0 commit comments

Comments
 (0)