Skip to content

Commit

Permalink
fix influx client
Browse files Browse the repository at this point in the history
  • Loading branch information
uv-orbs committed Jul 24, 2022
1 parent 6e067f1 commit c4f7179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bnnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def send_data_point(price):
p = get_influx_client().db_client.Point("spot").tag(
p = get_influx_client().Point("spot").tag(
"version", "dev1.1").tag("exchange", "binance").tag("pair", "BTCUSDT")

p.field("price", price)
Expand Down
2 changes: 1 addition & 1 deletion influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


def get_influx_client():
return client
return influxdb_client


def get_influx_write_api():
Expand Down

0 comments on commit c4f7179

Please sign in to comment.