]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/constants.py
Allow getting the standard deviation of the plotted values
[collecty.git] / src / collecty / constants.py
index bae6ed42bac5610c516e7ccc8b9c09391fcfbc7c..082203e38bdc84c9311da3c15391246a8f0a75b1 100644 (file)
@@ -55,6 +55,15 @@ GRAPH_DEFAULT_ARGUMENTS = (
        "--watermark", _("Created by collecty"),
 )
 
+INTERVALS = {
+       None   : "-3h",
+       "hour" : "-1h",
+       "day"  : "-25h",
+       "month": "-30d",
+       "week" : "-360h",
+       "year" : "-365d",
+}
+
 GRAPH_DEFAULT_WIDTH = 768
 GRAPH_DEFAULT_HEIGHT = 480