Skip to content

Commit

Permalink
Merge pull request #236 from seasidesparrow/master
Browse files Browse the repository at this point in the history
 	modified:   aip/direct/ArXivDirect.py
  • Loading branch information
spacemansteve authored Jan 24, 2020
2 parents 9c02d89 + 33d632f commit e4c9956
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aip/direct/ArXivDirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# and adspy via mount of /proj

import sys
import datetime
try:
import ads.ADSCachedExports as ads_ex
import ads.journal_parser as ads_jp
Expand Down Expand Up @@ -35,7 +36,9 @@ def add_direct(record, json_timestamp=None, current_record=None,
# create a new record for the Direct entry

if current_record is None:
rec_properties = {'bibcode': bibcode, 'entry_date': record['pubdate']}
date_today = datetime.datetime.today().strftime('%Y-%m-%d')
rec_properties = {'bibcode': bibcode, 'entry_date': date_today}
# rec_properties = {'bibcode': bibcode, 'entry_date': record['pubdate']}
adsr.current_record = ads_ex.xml_node(adsr.xml_records, 'record', properties=rec_properties)
else:
adsr.current_record = current_record
Expand Down

0 comments on commit e4c9956

Please sign in to comment.