Skip to content
Snippets Groups Projects
Commit c32bb4b6 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Remove default values for station/channel/location

They are only used if truthy.
parent 3ecbaefb
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!46Webservice query
......@@ -115,11 +115,11 @@ async def get_metadata(
if network:
query = query.where(metadata.c.network == network)
if station:
query = query.where(metadata.c.station.like(station or "%"))
query = query.where(metadata.c.station == station)
if channel:
query = query.where(metadata.c.channel.like(channel or "%"))
query = query.where(metadata.c.channel.like(channel))
if location:
query = query.where(metadata.c.location.like(location or "%"))
query = query.where(metadata.c.location.like(location))
if starttime:
query = query.where(
or_(metadata.c.endtime == None, metadata.c.endtime > starttime)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment