Skip to content

Commit 677bcbe

Browse files
Remove logging
1 parent bd5ae49 commit 677bcbe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

municipal_finance/update/utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
from django.db.models import Q
1010
from django.db import transaction
1111

12-
import logging
13-
import botocore
14-
logger = logging.Logger(__name__)
1512

1613
MONTH_TYPE_RE = re.compile(r"^M\d{2}$")
1714

@@ -138,9 +135,7 @@ def update(self):
138135
with transaction.atomic():
139136
# Delete the existing matching records
140137
self.update_obj.deleted = 0
141-
logger.warn(f"___file___{self.update_obj.file.url}")
142138
self.update_obj.file.open("r")
143-
144139
with closing(self.update_obj.file) as file:
145140
lines = iter(file)
146141
next(lines) # Skip header
@@ -165,5 +160,5 @@ def update(self):
165160
objects = cls.facts_cls.objects.bulk_create(objects)
166161
self.update_obj.inserted += len(objects)
167162
# Save the status of the update
168-
config.IS_SCORECARD_COMPILED = False
163+
config.IS_SCORECARD_COMPILED = False
169164
self.update_obj.save(update_fields=["deleted", "inserted"])

0 commit comments

Comments
 (0)