Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Update client.py #909

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,14 +784,14 @@ def get_list_measurements(self):
"""
return list(self.query("SHOW MEASUREMENTS").get_points())

def drop_measurement(self, measurement):
def drop_measurement(self, measurement, database):
"""Drop a measurement from InfluxDB.

:param measurement: the name of the measurement to drop
:type measurement: str
"""
self.query("DROP MEASUREMENT {0}".format(quote_ident(measurement)),
method="POST")
database=database, method="POST")

def create_retention_policy(self, name, duration, replication,
database=None,
Expand Down