fix: proces_track utility

This commit is contained in:
Paul Bienkowski 2021-11-17 20:09:02 +01:00
parent ea6a631560
commit bde1b77b48
2 changed files with 2 additions and 3 deletions

View file

@ -61,7 +61,7 @@ async def process_tracks(data_source, tracks):
:param tracks: A list of strings which
"""
with make_session() as session:
async with make_session() as session:
for track_id_or_slug in tracks:
track = (
await session.execute(

View file

@ -44,8 +44,7 @@ async def main():
data_source = DataSource(tile_source)
if args.tracks:
async with make_session() as session:
await process_tracks(session, data_source, args.tracks)
await process_tracks(data_source, args.tracks)
else:
await process_tracks_loop(data_source, args.loop_delay)