Skip to content

Commit

Permalink
Merge branch 'hotfix/20231019_1146_issue3726_pull_by_id'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Oct 19, 2023
2 parents 58d2135 + 80e9108 commit 7b51034
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 7b51034

Please sign in to comment.