File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 99from django .db .models import Q
1010from django .db import transaction
1111
12- import logging
13- import botocore
14- logger = logging .Logger (__name__ )
1512
1613MONTH_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" ])
You can’t perform that action at this time.
0 commit comments