feat(chalice): support null-duration for resources
This commit is contained in:
parent
bf4e458afd
commit
8d7bc32993
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ from decouple import config
|
|||
|
||||
def get_by_session_id(session_id, project_id, start_ts, duration):
|
||||
with ch_client.ClickHouseClient() as ch:
|
||||
if duration is None or (type(duration) != 'int' and type(duration) != 'float') or duration < 0:
|
||||
duration = 0
|
||||
delta = config("events_ts_delta", cast=int, default=5 * 60) * 1000
|
||||
ch_query = """\
|
||||
SELECT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue