aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/difficulty.py12
-rw-r--r--src/model/priority.py12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/model/difficulty.py b/src/model/difficulty.py
index cbabd1e..e38f19b 100644
--- a/src/model/difficulty.py
+++ b/src/model/difficulty.py
@@ -13,18 +13,18 @@ values = [
def format(difficulty: Difficulty) -> str:
if difficulty == Difficulty.EASY:
- return 'Easy'
+ return "Easy"
elif difficulty == Difficulty.NORMAL:
- return 'Normal'
+ return "Normal"
elif difficulty == Difficulty.HARD:
- return 'Hard'
+ return "Hard"
def parse(string: str) -> Optional[Difficulty]:
- if string == 'Easy':
+ if string == "Easy":
return Difficulty.EASY
- elif string == 'Normal':
+ elif string == "Normal":
return Difficulty.MIDDLE
- elif string == 'Hard':
+ elif string == "Hard":
return Difficulty.HARD
else:
return None
diff --git a/src/model/priority.py b/src/model/priority.py
index 76cfd62..5948104 100644
--- a/src/model/priority.py
+++ b/src/model/priority.py
@@ -13,18 +13,18 @@ values = [
def format(priority: Priority) -> str:
if priority == Priority.LOW:
- return 'Low'
+ return "Low"
elif priority == Priority.MIDDLE:
- return 'Middle'
+ return "Middle"
elif priority == Priority.HIGH:
- return 'High'
+ return "High"
def parse(string: str) -> Optional[Priority]:
- if string == 'Low':
+ if string == "Low":
return Priority.LOW
- elif string == 'Middle':
+ elif string == "Middle":
return Priority.MIDDLE
- elif string == 'High':
+ elif string == "High":
return Priority.HIGH
else:
return None