Skip to content

Commit ca1d313

Browse files
committed
In the "Tasks" module, I changed how the task types are defined.
I renamed the root method "Define_Types" to "Define_Task_Types". I changed the way of checking and organizing task types inspired by the way the "Diary Slim" module handles its texts. Using the new folder "Task types" and a JSON file with the same name. Now, the task types are defined in their own folders, making them more flexible and modular. I changed the usage of task types throughout the module to reflect the changes made, and I also improved the code and comments.
1 parent a07fd1a commit ca1d313

File tree

12 files changed

+787
-255
lines changed

12 files changed

+787
-255
lines changed

Module files/Food_Time/Times.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"Will be hungry": 3
1111
},
1212
"Ate": {
13-
"Object": "2025-01-14 20:56:19-03:00",
13+
"Object": "2025-01-21 18:23:19-03:00",
1414
"Time": 0,
15-
"Time text": "20:56",
15+
"Time text": "18:23",
1616
"Unit": {
1717
"en": "hours",
1818
"pt": "horas"
@@ -23,9 +23,9 @@
2323
}
2424
},
2525
"Can drink water": {
26-
"Object": "2025-01-14 21:36:19-03:00",
26+
"Object": "2025-01-21 19:03:19-03:00",
2727
"Time": 40,
28-
"Time text": "21:36",
28+
"Time text": "19:03",
2929
"Unit": {
3030
"en": "minutes",
3131
"pt": "minutos"
@@ -36,9 +36,9 @@
3636
}
3737
},
3838
"Will be hungry": {
39-
"Object": "2025-01-14 23:56:19-03:00",
39+
"Object": "2025-01-21 21:23:19-03:00",
4040
"Time": 3,
41-
"Time text": "23:56",
41+
"Time text": "21:23",
4242
"Unit": {
4343
"en": "hours",
4444
"pt": "horas"

Module files/Tasks/Texts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"task_types": {
1919
"en": "Task types",
20-
"pt": "Tipos de tarefa"
20+
"pt": "Tipos de tarefas"
2121
},
2222
"task_title": {
2323
"en": "Task title",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Testing": false,
3-
"Verbose": true,
3+
"Verbose": false,
44
"User information": false,
55
"Has active switches": false
66
}

Module files/Utility/Language/Texts.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
"en": "Type {}",
9393
"pt": "Digite {}"
9494
},
95+
"type_the_{}": {
96+
"en": "Type the {}",
97+
"pt": "Digite o {}"
98+
},
9599
"type_or_paste_the_text": {
96100
"en": "Type or paste the text",
97101
"pt": "Digite ou cole o texto"
@@ -187,8 +191,8 @@
187191
"en": "Press Enter when you finish",
188192
"pt": "Pressione Enter quando você terminar de"
189193
},
190-
"press_enter_when_you_finish_reading_the_info_summary": {
191-
"en": "Press Enter when you finish reading the info summary",
194+
"press_enter_when_you_finish_reading_the_information_summary": {
195+
"en": "Press Enter when you finish reading the information summary",
192196
"pt": "Pressione Enter quando você terminar de ler o resumo de informações"
193197
},
194198
"press_enter_when_you": {
@@ -1894,6 +1898,10 @@
18941898
"en": "Chapters",
18951899
"pt": "Capítulos"
18961900
},
1901+
"story_chapter": {
1902+
"en": "Story chapter",
1903+
"pt": "Capítulo de história"
1904+
},
18971905
"portrait, title()": {
18981906
"en": "Portrait",
18991907
"pt": "Retrato"
@@ -2173,13 +2181,21 @@
21732181
"en": "Yearly statistics",
21742182
"pt": "Estatísticas anuais"
21752183
},
2176-
"updated_statistic": {
2177-
"en": "Updated statistic",
2178-
"pt": "Estatística atualizada"
2184+
"updated_year_statistic": {
2185+
"en": "Updated year statistic",
2186+
"pt": "Estatística de ano atualizada"
2187+
},
2188+
"updated_year_statistics": {
2189+
"en": "Updated year statistics",
2190+
"pt": "Estatísticas de ano atualizadas"
2191+
},
2192+
"updated_month_statistic": {
2193+
"en": "Updated month statistic",
2194+
"pt": "Estatística de mês atualizada"
21792195
},
2180-
"updated_statistics": {
2181-
"en": "Updated statistics",
2182-
"pt": "Estatísticas atualizadas"
2196+
"updated_month_statistics": {
2197+
"en": "Updated month statistics",
2198+
"pt": "Estatísticas de mês atualizadas"
21832199
},
21842200
"bike_rides": {
21852201
"en": "Bike rides",

Modules/Database/Database/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ def Show_Information(self, dictionary):
11161116
print()
11171117
print(self.separators["5"])
11181118

1119-
self.Input.Type(self.Language.language_texts["press_enter_when_you_finish_reading_the_info_summary"])
1119+
self.Input.Type(self.Language.language_texts["press_enter_when_you_finish_reading_the_information_summary"])
11201120

11211121
if __name__ == "__main__":
11221122
Database()

0 commit comments

Comments
 (0)