mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Rip out some more useless stuff
This commit is contained in:
@@ -7,9 +7,6 @@ addons:
|
|||||||
chrome: stable
|
chrome: stable
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export TZ=Europe/London
|
|
||||||
- export LANG=en_GB.UTF-8
|
|
||||||
- export LC_ALL=en_GB.UTF-8
|
|
||||||
- export LANGUAGE=en_GB.UTF-8
|
- export LANGUAGE=en_GB.UTF-8
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from selenium.webdriver.support.select import Select
|
|||||||
from selenium.webdriver.common.keys import Keys
|
from selenium.webdriver.common.keys import Keys
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
def parse_bool_from_string(string):
|
def parse_bool_from_string(string):
|
||||||
# Used to convert from attribute strings to boolean values, written after I found this:
|
# Used to convert from attribute strings to boolean values, written after I found this:
|
||||||
# >>> bool("false")
|
# >>> bool("false")
|
||||||
@@ -23,8 +24,8 @@ def parse_bool_from_string(string):
|
|||||||
def get_time_format():
|
def get_time_format():
|
||||||
# Default
|
# Default
|
||||||
time_format = "%H:%M"
|
time_format = "%H:%M"
|
||||||
# If system is 12hr FIXME Hack on the CI...
|
# If system is 12hr
|
||||||
if timezone.now().strftime("%p") or os.environ.get('CI', False):
|
if timezone.now().strftime("%p"):
|
||||||
time_format = "%I:%M %p"
|
time_format = "%I:%M %p"
|
||||||
return time_format
|
return time_format
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user