Skip to content

Commit

Permalink
Bugfix: Added authors field to not lazy load
Browse files Browse the repository at this point in the history
- This was provoking all author lists to be empty, leading to a
  miscalculation of the normalized citation count
  • Loading branch information
marblestation committed Apr 28, 2020
1 parent e9c1d6a commit 9cc32f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adsdata/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
nonbib_to_master_select_fields = ('bibcode', 'boost', 'citation_count',
'grants', 'ned_objects', 'nonarticle', 'norm_cites', 'ocrabstract',
'private', 'pub_openaccess', 'read_count', 'readers', 'reference',
'refereed', 'simbad_objects')
'refereed', 'simbad_objects', 'authors')

# select fields that are not sent to master, they are used to compute solr property field
nonbib_to_master_property_fields = ('nonarticle', 'ocrabstract', 'private', 'pub_openaccess',
'refereed', '_sa_instance_state')
'refereed', '_sa_instance_state', 'authors')

@app.task(queue='transform-results')
def task_transform_results(schema, source="models.NonBibDeltaTable", offset=0, limit=100):
Expand Down

0 comments on commit 9cc32f3

Please sign in to comment.