Skip to content

Commit

Permalink
Merge pull request #95 from OpenSTEF/fix-batch-write-errors
Browse files Browse the repository at this point in the history
Fix batch write errors
  • Loading branch information
JanMaartenvanDoorn authored Mar 30, 2023
2 parents 7ee62d8 + b4c5054 commit f84bfef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion openstef_dbc/data_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import geopy
from influxdb_client import InfluxDBClient
from influxdb_client.client.write_api import SYNCHRONOUS
import pandas as pd
import requests
import sqlalchemy
Expand Down Expand Up @@ -61,7 +62,7 @@ def __init__(self, config):
)

self.influx_query_api = self.influx_client.query_api()
self.influx_write_api = self.influx_client.write_api()
self.influx_write_api = self.influx_client.write_api(write_options=SYNCHRONOUS)

self.mysql_engine = self._create_mysql_engine(
username=config.mysql_username,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_long_description_from_readme():

setup(
name="openstef_dbc",
version="3.6.0",
version="3.6.1",
packages=find_packages(include=["openstef_dbc", "openstef_dbc.*"]),
description="Database Connection for OpenSTEF",
long_description=read_long_description_from_readme(),
Expand Down

0 comments on commit f84bfef

Please sign in to comment.