Skip to content

Commit

Permalink
Update sql-make-graph-speed-ave.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pageauc committed Sep 21, 2023
1 parent f632b52 commit e515975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sql-make-graph-speed-ave.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e515975

Please sign in to comment.