first commit from pi

This commit is contained in:
langolierz
2017-10-06 07:12:36 +00:00
parent 053bde35f6
commit 9d56b2fb35
7 changed files with 92 additions and 80 deletions

View File

@@ -30,7 +30,7 @@ def setup_logging():
logger = setup_logging()
######## sets paths and constants ########
PATH_TO_BROWSER = 'C:\TestFolderStucture' #TODO replace this with pi path name when i know what makes sense
PATH_TO_BROWSER = '/home/pi/pp_home/media' #TODO replace this with pi path name when i know what makes sense
PATH_TO_DATA_OBJECTS = get_the_current_dir_path()
EMPTY_BANK = dict(name='',location='',length=-1,start=-1,end=-1)
@@ -304,4 +304,4 @@ def convert_int_to_string_for_display(time_in_seconds):
elif time_in_seconds >= 6000:
return '99:99'
else:
return time.strftime("%M:%S", time.gmtime(time_in_seconds))
return time.strftime("%M:%S", time.gmtime(time_in_seconds))