aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJoris2020-05-31 17:47:13 +0200
committerJoris2020-05-31 17:47:14 +0200
commit74fd6f47b3683bd727a33f3312582485fa062b95 (patch)
tree87d4a3045e5585dde9e75cf957e755f47de61775 /src/model
parent1bed85a9b107d1b03e71b848829cb7b1f33060f4 (diff)
Use double quotes instead of simple quotes
Follow advice from: https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python
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