Commit da09729a authored by markus's avatar markus
Browse files

Optionally disable twitter

parent e3cc8d8c
......@@ -18,6 +18,9 @@ class TwitterClient:"Logged in to twitter as '{}")
def handle_observation(self, observation, observation_data, waterfall_image, data_images, tweet_waterfall = False):
global enabled
if not enabled:
with tempfile.TemporaryFile() as tmp:
text = f"New satellite image from {observation_data['satellite_name']} at {observation_data['data_timeframe_start']} UTC. {observation_data['url']} #cccamp19"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment