Skip to content

Commit

Permalink
Added check on service environment for file names. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed Oct 6, 2022
1 parent 6c09a6a commit 03259ac
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ADSCitationCapture/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@

#Dictionary that defines the output files for ADSDataPipeline
file_names=OrderedDict()
file_names['bibcode'] =proj_home+'/logs/output/bibcodes_CC.list.can'
file_names['citations'] = proj_home+'/logs/output/citations_CC.list'
file_names['references'] = proj_home+'/logs/output/references_CC.list'
file_names['authors'] = proj_home+'/logs/output/facet_authors_CC.list'

file_names['bibcode'] =proj_home+'/logs/output/bibcodes_CC.list.can.'
file_names['citations'] = proj_home+'/logs/output/citations_CC.list.'
file_names['references'] = proj_home+'/logs/output/references_CC.list.'
file_names['authors'] = proj_home+'/logs/output/facet_authors_CC.list.'

env_name = config.get('ENVIRONMENT', 'back-dev')
for key in file_names.keys():
file_names[key] = file_names[key] + str(env_name)

# =============================== FUNCTIONS ======================================= #
def store_event(app, data):
Expand Down

0 comments on commit 03259ac

Please sign in to comment.