mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
remove unnecessary data report excluding me
This commit is contained in:
parent
f1e4932b17
commit
e35fc53807
@ -298,6 +298,9 @@ class InfluxDB:
|
||||
self.client.write_points(json_body)
|
||||
|
||||
def collect_data(self):
|
||||
if os.getenv("INFLUX_HOST") is None:
|
||||
return
|
||||
|
||||
with contextlib.suppress(Exception):
|
||||
self.data = self.get_worker_data()
|
||||
self.__fill_worker_data()
|
||||
|
Loading…
Reference in New Issue
Block a user