Skip to content

Commit 592c5e5

Browse files
committed
Removing comments, unneeded prints.
1 parent bbec178 commit 592c5e5

File tree

6 files changed

+4
-15
lines changed

6 files changed

+4
-15
lines changed

apps/authorization/models.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,10 @@ def update_grants(*args, **kwargs):
9393
tokens = AccessToken.objects.all()
9494
for token in tokens:
9595
if token.is_valid():
96-
try:
97-
DataAccessGrant.objects.get_or_create(
98-
beneficiary=token.user,
99-
application=token.application,
100-
)
101-
except Exception as e:
102-
print(f"update_grants: {e}")
96+
DataAccessGrant.objects.get_or_create(
97+
beneficiary=token.user,
98+
application=token.application,
99+
)
103100

104101

105102
def check_grants():

apps/authorization/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class Meta:
3232
fields = ('id', 'name', 'logo_uri', 'tos_uri', 'policy_uri', 'contacts')
3333

3434
def get_contacts(self, obj):
35-
# print(obj)
3635
application = Application.objects.get(id=obj.id)
3736
return application.support_email or ""
3837

apps/core/management/commands/create_test_feature_switches.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def handle(self, *args, **options):
3434
for switch in WAFFLE_FEATURE_SWITCHES:
3535
try:
3636
Switch.objects.get(name=switch[0])
37-
# self._log("Feature switch already exists: %s" % (str(switch)))
3837
except Switch.DoesNotExist:
3938
Switch.objects.create(name=switch[0], active=switch[1], note=switch[2])
4039
self._log("Feature switch created: %s" % (str(switch)))
@@ -46,7 +45,6 @@ def handle(self, *args, **options):
4645

4746
try:
4847
flag_obj = Flag.objects.get(name=flag[0])
49-
# self._log("Feature flag already exists: %s" % (str(flag_obj)))
5048
except Flag.DoesNotExist:
5149
flag_obj = Flag.objects.create(name=flag[0])
5250
self._log("Feature flag created: %s" % (str(flag[0])))
@@ -62,7 +60,6 @@ def handle(self, *args, **options):
6260
flag_obj.save()
6361
self._log("User {} added to feature flag: {}".format(u, flag))
6462
except Exception as e:
65-
# print(e)
6663
self._log("Exception when adding user {} to feature flag: {}".format(u, flag))
6764
except User.DoesNotExist:
6865
# assuming test users exist before creating flags associated with them

apps/fhir/bluebutton/tests/test_wellknown_endpoints.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def test_smart_configuration_missing_fields_in_v3(self):
150150
@override_switch('v3_endpoints', active=True)
151151
def test_fhir_metadata_extensions_have_v3(self):
152152
the_url = f'{BASEURL}/v3/fhir/metadata'
153-
print(the_url)
154153
response = self.client.get(the_url)
155154
self.assertEqual(response.status_code, 200)
156155
json = response.json()

apps/testclient/management/commands/create_test_user_and_application.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ def create_group(name="BlueButton"):
2828
print("%s group pre-existing. Create skipped." % (name))
2929
return g
3030

31-
# usr would be a string if it is anything
32-
3331

3432
def create_user(the_group):
3533
username = "rogersf"

dev-local/utility-functions.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ set_salt () {
315315
# function will try and stop ALL docker containers.
316316
cleanup_docker_stack () {
317317
DOCKER_PS=$(docker ps -q)
318-
echo $DOCKER_PS
319318

320319
TAKE_IT_DOWN="NO"
321320
for id in $DOCKER_PS; do

0 commit comments

Comments
 (0)