diff --git a/sql-make-graph-speed-ave.py b/sql-make-graph-speed-ave.py index 41f2f8b..b4c5f51 100644 --- a/sql-make-graph-speed-ave.py +++ b/sql-make-graph-speed-ave.py @@ -6,7 +6,7 @@ ''' from __future__ import print_function -prog_ver = '1.1' +prog_ver = '13_02' DEBUG = False print('Loading ver %s DEBUG= %s ... ' % (prog_ver, DEBUG)) import sqlite3 @@ -40,7 +40,7 @@ from config import DB_DIR from config import DB_NAME from config import DB_TABLE -from config import SPEED_MPH +from config import MO_SPEED_MPH_ON from config import GRAPH_PATH from config import GRAPH_ADD_DATE_TO_FILENAME # Prefix graph image filename with datetime for uniqueness. from config import GRAPH_RUN_TIMER_HOURS @@ -141,10 +141,10 @@ def get_timestamp_substr(total_by): #---------------------------------------------------------------------------------------- def get_speed_units_str(): ''' - Convert config.py SPEED_MPH boolean to a string. + Convert config.py MO_SPEED_MPH_ON boolean to a string. ''' speed_unit = 'kph' - if SPEED_MPH: + if MO_SPEED_MPH_ON: speed_unit = 'mph' return speed_unit