Skip to content

Commit

Permalink
turn refresh_cache.py into proper cmdline script
Browse files Browse the repository at this point in the history
  • Loading branch information
kamholz committed May 15, 2019
1 parent cfc1f20 commit f541c96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions refresh_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ async def run():
await panlex_db.connect()
await panlex_db.refresh_cache()

loop = asyncio.get_event_loop()
loop.run_until_complete(run())
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(run())

0 comments on commit f541c96

Please sign in to comment.