diff display_issues.py @ 32:80bbd06fe8ec

Add Comments
author Magnus Schieder <mschieder@intevation.de>
date Fri, 23 Nov 2018 16:13:24 +0100
parents 9aca070c86bd
children
line wrap: on
line diff
--- a/display_issues.py	Thu Nov 22 19:34:53 2018 +0100
+++ b/display_issues.py	Fri Nov 23 16:13:24 2018 +0100
@@ -5,8 +5,8 @@
 author: Sascha L. Teichmann <sascha.teichmann@intevation.de>
 author: Bernhard Reiter <bernhard@intevation.de>
 author: Sean Engelhardt <sean.engelhardt@intevation.de>
-
-(c) 2010,2015 by Intevation GmbH
+author: Magnus Schieder <magnus.schieder@intevation.de>
+(c) 2010,2015,2018 by Intevation GmbH
 
 This is Free Software unter the terms of the
 GNU GENERAL PUBLIC LICENSE Version 3 or later.
@@ -41,6 +41,7 @@
     return ", ".join(formated)
 
 def get_webpage(data_dict, columns, search_parameters, keywords, graph=None):
+    """Returns the website with inserted data."""
 
     if graph is None:
         graph = os.path.dirname(os.path.realpath(__file__)) + '/graph.html'
@@ -51,7 +52,7 @@
     if "None" not in columns:
         data_dict["None"] = [0]
 
-
+    # Converts the data to a JS object.
     js_data_dickt ="{"
     for col in columns.split(", "):
         js_data_dickt += col + ":[" + make_js_object_string(data_dict[col]) + "],"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)