From 1148c13005f55b50b8e46405fa9cda6a6b7c6745 Mon Sep 17 00:00:00 2001 From: mcwt <44743513+mcwt@users.noreply.github.com> Date: Mon, 29 Nov 2021 20:40:03 +0800 Subject: [PATCH] Update client.py --- influxdb/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb/client.py b/influxdb/client.py index adab4edc..872badf3 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -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,