Browse Source

Don't write images (it does not work and seems not used)

Suren A. Chilingaryan 4 years ago
parent
commit
26ac23cf43
1 changed files with 4 additions and 3 deletions
  1. 4 3
      core.py

+ 4 - 3
core.py

@@ -131,9 +131,10 @@ def fetchDataADEI():
                              auth=(config['username'],
                                    config['password']))
 
-        with open("static/"+config['title'].lower()+"/images/" + param + ".png", 'wb') as handle:
-            for chunk in image.iter_content():
-                handle.write(chunk)
+        # I think this is not used
+        #with open("static/"+config['title'].lower()+"/images/" + param + ".png", 'wb') as handle:
+        #    for chunk in image.iter_content():
+        #        handle.write(chunk)
 
     with open("/tmp/.tmp.yaml", 'w') as stream_tmp:
         stream_tmp.write(yaml.dump(cache_data, default_flow_style=False))