Showing
1 changed file
with
1 additions
and
1 deletions
@@ -133,7 +133,7 @@ while True: | @@ -133,7 +133,7 @@ while True: | ||
133 | if queue.is_was_time(): | 133 | if queue.is_was_time(): |
134 | json_bodys = queue.get_all() | 134 | json_bodys = queue.get_all() |
135 | if middleware == 'mongodb': | 135 | if middleware == 'mongodb': |
136 | - r | 136 | + r = mongodb_insert(db, measurement, json_bodys) |
137 | elif middleware == 'influxdb': | 137 | elif middleware == 'influxdb': |
138 | r = influxdb_insert(db, measurement, json_bodys) | 138 | r = influxdb_insert(db, measurement, json_bodys) |
139 | if r: | 139 | if r: |
-
Please register or login to post a comment