Skip to content

Commit

Permalink
Merge tag '20231019_1146_issue3726_pull_by_id' into develop
Browse files Browse the repository at this point in the history
Exec change for journalcsv
  • Loading branch information
Steven-Eardley committed Oct 19, 2023
2 parents bf08410 + 7b51034 commit 83d3e0f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions portality/bll/services/journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,18 @@ def _get_article_kvs(journal):
return kvs

# ~~!JournalCSV:Feature->Journal:Model~~
cols = {}
logger("Loading journal ids")
journal_ids = []
for j in models.Journal.all_in_doaj(page_size=1000): #Fixme: limited by ES, this may not be sufficient
journal_ids.append(j.id)
logger("Journal ids loaded: {x}".format(x=len(journal_ids)))

cols = {}
for jid in journal_ids:
export_start = datetime.utcnow()
logger("Exporting journal {x}".format(x=j.id))
logger("Exporting journal {x}".format(x=jid))

j = models.Journal.pull(jid)

time_log = []
bj = j.bibjson()
Expand Down

0 comments on commit 83d3e0f

Please sign in to comment.