formatting

This commit is contained in:
Christian Stade-Schuldt 2017-09-06 22:41:09 +02:00
parent 4e5ede6d12
commit 9fe16979b7
2 changed files with 8 additions and 6 deletions

View File

@ -19,14 +19,15 @@
import os
import re
import sys
import fritzbox_helper as fh
locale = os.environ.get('locale', 'de')
patternLoc = {"de":"(\d+)\s(Tag|Stunden|Minuten)", \
"en":"(\d+)\s(days|hours|minutes)"}
dayLoc = {"de":"Tag", "en":"days"}
hourLoc = {"de":"Stunden", "en":"hours"}
minutesLoc = {"de":"Minuten", "en":"minutes"}
patternLoc = {"de": "(\d+)\s(Tag|Stunden|Minuten)",
"en": "(\d+)\s(days|hours|minutes)"}
dayLoc = {"de": "Tag", "en": "days"}
hourLoc = {"de": "Stunden", "en": "hours"}
minutesLoc = {"de": "Minuten", "en": "minutes"}
PAGE = '/system/energy.lua'
pattern = re.compile(patternLoc[locale])

View File

@ -19,10 +19,11 @@
import os
import re
import sys
import fritzbox_helper as fh
locale = os.environ.get('locale', 'de')
patternLoc = {"de":"(\d+) WLAN", "en":"(\d+) wireless LAN"}
patternLoc = {"de": "(\d+) WLAN", "en": "(\d+) wireless LAN"}
PAGE = '/system/energy.lua'
pattern = re.compile(patternLoc[locale])