Skip to content

Commit

Permalink
Bugfix: citation_change variable used when it did not exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
marblestation committed Sep 23, 2019
1 parent c371043 commit 6c19225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ADSCitationCapture/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def task_maintenance_metadata(dois, bibcodes):
# These two bibcodes are identical and we can signal the broker
event_data = webhook.identical_bibcodes_event_data(registered_record['bibcode'], parsed_metadata['bibcode'])
if event_data:
dump_prefix = citation_change.timestamp.ToDatetime().strftime("%Y%m%d") # "%Y%m%d_%H%M%S"
dump_prefix = datetime.now().strftime("%Y%m%d") # "%Y%m%d_%H%M%S"
logger.debug("Calling 'task_emit_event' for '%s' IsIdenticalTo '%s'", registered_record['bibcode'], parsed_metadata['bibcode'])
task_emit_event.delay(event_data, dump_prefix)
#
Expand Down

0 comments on commit 6c19225

Please sign in to comment.