Skip to content

Commit

Permalink
Fixed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri committed Nov 25, 2024
1 parent 5918f02 commit efef4d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions mappings/publisher_backlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ def createMapping(self):
'publisher_project_source': ('Publisher (from Projects)', '{0}')
}

def apply_formatting(self):
def applyFormatting(self):
self.record.has_part = []

if self.record.source:
source_list = self.record.source.split(' ')
print(source_list)
self.record.source = source_list[0]

if self.record.publisher_project_source:
Expand Down
2 changes: 1 addition & 1 deletion processes/ingest/publisher_backlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def runProcess(self):
else:
logger.warning(f'Unknown Publisher Backlist ingestion process type {self.process}')
return

raise Exception
for record in records:
self.addDCDWToUpdateList(record)

Expand Down
2 changes: 1 addition & 1 deletion services/sources/publisher_backlist_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_records(
for json_dict in array_json_records:
for records_value in json_dict['records']:
try:
record_metadata_dict = records_value
record_metadata_dict = records_value['fields']
record = PublisherBacklistMapping(record_metadata_dict)
record.applyMapping()
except Exception:
Expand Down

0 comments on commit efef4d6

Please sign in to comment.