Skip to content

Commit

Permalink
Default to writing, and not reading, updates
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Scott <[email protected]>
  • Loading branch information
dbs committed Apr 26, 2019
1 parent c29a9f4 commit e2bfd50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ris2web_api
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,8 @@ def post_process(config, notes):
def main():
"Integrate the latest updates to the database"

write_updates = False
read_updates = True
write_updates = True
read_updates = False
notes = []

config = configparser.ConfigParser()
Expand All @@ -880,7 +880,7 @@ def main():
zot = zotero.Zotero(config['zotero']['group'], 'group', config['zotero']['key'])

# list_collections(zot)
if read_updates:
if read_updates and not write_updates:
f = open('updates.json', 'r')
items = json.load(f)
else:
Expand Down

0 comments on commit e2bfd50

Please sign in to comment.