Fix range on upload.

This commit is contained in:
redxef 2023-11-14 18:47:22 +01:00
parent c892ac1aab
commit 7146fc2932
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -181,7 +181,7 @@ def main(config, dryrun, level, range):
sink_results = [] sink_results = []
for sink in sinks: for sink in sinks:
try: try:
sink.post_events(events, until=config['range']) sink.post_events(events, until=max(config['range'].values()))
sink_results += [True] sink_results += [True]
except Exception: except Exception:
logger.exception('failed to post to sink %s', sink) logger.exception('failed to post to sink %s', sink)