mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-09 12:01:15 +00:00
don't send to sns if empty
This commit is contained in:
parent
3bdb6b5ac9
commit
4ae8678a5e
@ -349,7 +349,8 @@ def upload(event, context):
|
||||
# last = to_sns.pop()
|
||||
# to_sns = to_sns[::3]
|
||||
# to_sns.append(last)
|
||||
post(to_sns)
|
||||
if len(to_sns) > 0:
|
||||
post(to_sns)
|
||||
return errors
|
||||
def lambda_handler(event, context):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user