Skip to content

Commit 3008776

Browse files
committed
Updated more modules
1 parent 6bb800e commit 3008776

File tree

10 files changed

+28
-43
lines changed

10 files changed

+28
-43
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"testing": false,
3-
"verbose": false,
2+
"testing": true,
3+
"verbose": true,
44
"user_information": false,
55
"Has active switches": false
66
}

Modules/Code/Code/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ def Define_Lists_And_Dictioinaries(self):
110110
self.Folder.Create(self.programming_language_folders[programming_language])
111111

112112
self.basic_functions = {
113-
"self.System.Open": self.System.Open,
114-
"self.Text.Open_Link": self.Text.Open_Link,
115-
"self.File.Close": self.File.Close
113+
"System.Open_Link": self.System.Open_Link
116114
}
117115

118116
self.programming_mode_item_names = [

Modules/Code/Help_With_Programming/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def Manage_Tools(self, mode):
421421
self.switches["testing"] == False
422422
):
423423
for program in programs_to_close:
424-
self.File.Close(program)
424+
self.System.Close(program)
425425

426426
if mode == "open" and self.switches["testing"] == False:
427427
Open(tool_path)

Modules/Code/Update_Websites/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def Open_And_Close_XAMPP(self, open = False, close = False):
228228
if close == True:
229229
if self.switches["testing"] == False:
230230
for program in self.xampp_programs:
231-
self.File.Close(program)
231+
self.System.Close(program)
232232

233233
def Update_Website(self, open = True, close = True):
234234
text = self.language_texts["updating_this_website"]
@@ -305,4 +305,4 @@ def Open_Git_Console_Window(self):
305305
git_bat_file = file
306306

307307
if self.switches["testing"] == False:
308-
self.Text.Open_Link(git_bat_file)
308+
self.System.Open_Link(git_bat_file)

Modules/Friends/Create_Friend_Folder/__init__.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self):
1414
"States": {
1515
"Add Social Networks": False,
1616
"Add more Social Networks": True,
17-
"Add Social Network to existing Friend": False,
17+
"Add Social Network to existing friend folder": False,
1818
"Friend already existed": False
1919
}
2020
}
@@ -23,18 +23,18 @@ def __init__(self):
2323
print()
2424
print(self.large_bar)
2525

26-
# Ask the user if they want to add Social Networks to an existing Friend folder
27-
self.dictionary["States"]["Add Social Network to existing Friend"] = self.Input.Yes_Or_No(self.language_texts["add_social_network_to_friend_folder"])
26+
# Ask the user if they want to add Social Networks to an existing friend folder
27+
self.dictionary["States"]["Add Social Network to existing friend folder"] = self.Input.Yes_Or_No(self.language_texts["add_social_network_to_friend_folder"])
2828

29-
# If the user wants to add Social Networks to an existing Friend, select a Friend to do that
30-
if self.dictionary["States"]["Add Social Network to existing Friend"] == True:
29+
# If the user wants to add Social Networks to an existing friend folder, select a Friend to do that
30+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == True:
3131
print()
3232
print(self.large_bar)
3333

3434
self.Select_Friend()
3535

3636
# If not, type the information of the new Friend to be added
37-
if self.dictionary["States"]["Add Social Network to existing Friend"] == False:
37+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == False:
3838
self.Type_Friend_Information()
3939

4040
# Add the Social Networks (typing their information)
@@ -47,15 +47,15 @@ def __init__(self):
4747
self.Write_To_Files()
4848

4949
# Show the information about the newly added Friend
50-
# Or the new Social Networks added to an existing friend
50+
# Or the new Social Networks added to an existing friend folder
5151
self.Show_Information()
5252

5353
# Run the root class to update the folders and files of all Friends
5454
# And also the "Friends.json" file
5555
super().__init__()
5656

5757
def Type_Friend_Information(self):
58-
# Show a separator and the "Please type friend information" text
58+
# Show a separator and the "Please type the information of the Friend" text
5959
print()
6060
print(self.large_bar)
6161
print()
@@ -184,8 +184,8 @@ def Add_Social_Networks(self):
184184
# Create a local copy of the Social Networks dictionary
185185
self.social_networks_copy = deepcopy(self.social_networks)
186186

187-
# If the user wants to add a Social Network to an existing Friend folder
188-
if self.dictionary["States"]["Add Social Network to existing Friend"] == True:
187+
# If the user wants to add a Social Network to an existing friend folder
188+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == True:
189189
# Create the "New Social Networks" dictionary
190190
self.dictionary["New Social Networks"] = {
191191
"Numbers": {
@@ -280,7 +280,7 @@ def Add_Social_Network(self):
280280
self.social_networks_copy["List"].remove(self.social_network["Name"])
281281

282282
# If the user wants to add Social Networks to an existing Friend
283-
if self.dictionary["States"]["Add Social Network to existing Friend"] == True:
283+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == True:
284284
# Add the Social Network to the "New Social Networks" list
285285
self.dictionary["New Social Networks"]["List"].append(self.social_network["Name"])
286286

@@ -308,7 +308,7 @@ def Define_Friend_Folders_And_Files(self):
308308
if self.friend["Name"] not in self.friends["List"]:
309309
self.friends["List"].append(self.friend["Name"])
310310

311-
# Define and create the friend file folder type dictionaries
311+
# Define and create the friend folder type dictionaries
312312
for item in ["Text", "Image"]:
313313
# Define the item key inside the "Files" dictionary
314314
self.friend["Files"][item] = {}
@@ -571,7 +571,7 @@ def Show_Information(self):
571571
# ---------- #
572572

573573
# If the user does not want to add Social Networks to an existing Friend
574-
if self.dictionary["States"]["Add Social Network to existing Friend"] == False:
574+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == False:
575575
print()
576576

577577
# Show the information of the Friend
@@ -605,14 +605,14 @@ def Show_Information(self):
605605
social_networks = self.friend["Social Networks"]
606606

607607
# If the user wants to add Social Networks to an existing Friend
608-
if self.dictionary["States"]["Add Social Network to existing Friend"] == True:
608+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == True:
609609
social_networks = self.dictionary["New Social Networks"]
610610

611611
# Define the "Text by number" dictionary
612612
text_key = "social_network_information"
613613

614614
# If the user wants to add Social Networks to an existing Friend
615-
if self.dictionary["States"]["Add Social Network to existing Friend"] == True:
615+
if self.dictionary["States"]["Add Social Network to existing friend folder"] == True:
616616
text_key = "added_social_network_information"
617617

618618
plural_text_key = text_key.replace("network", "networks")

Modules/Friends/Descriptions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"pt": "Abrir arquivo de Amigo"
99
},
1010
"Create_Friend_Folder": {
11-
"en": "Create Friend folder",
11+
"en": "Create friend folder",
1212
"pt": "Criar pasta de Amigo"
1313
},
1414
"Show_Friend_Information": {

Modules/Social_Networks/Social_Networks/__init__.py

-13
Original file line numberDiff line numberDiff line change
@@ -846,19 +846,6 @@ def Type_Social_Network_Information(self, first_separator = True):
846846
# Define the Social Network Profile dictionary
847847
self.social_network["Profile"] = {}
848848

849-
# Define the test information dictionary for testing
850-
test_information = {
851-
"Discord": {
852-
"Username": "PinkyCatt",
853-
"Handle": "pinkycatt",
854-
"Originally": "PinkyCatt#0232",
855-
"ID": "979200403415654420",
856-
"Message ID": "1016099289216340008",
857-
"Member since": "25/05/2022",
858-
"Pronouns": "Ela/dela"
859-
}
860-
}
861-
862849
# Define the test information dictionary for testing
863850
test_information = {
864851
"Discord": {

Modules/Stories/Post/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def Create_Cover(self):
239239

240240
# Close Sony Vegas after updating the chapter cover in the specified cover type
241241
if self.switches["testing"] == False:
242-
self.File.Close("vegas110")
242+
self.System.Close("vegas110")
243243

244244
def Copy_Title(self, language, post_chapter = False):
245245
type_text = self.language_texts["press_enter_to_copy_the_chapter_title_and_paste_it_on_the_vegas_title_media"]

Modules/Stories/Write/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def Register_Task(self):
433433

434434
def Close_Obsidian(self):
435435
# Close Obsidian
436-
self.File.Close("Obsidian")
436+
self.System.Close("Obsidian")
437437

438438
# Delete lnk file
439439
self.File.Delete(self.obsidian["lnk"])

Modules/Watch_History/Manage/Iterate_Through_The_Media_List/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def __init__(self):
5656
print(language_media_type + ":")
5757

5858
media_types_to_remove = [
59-
self.texts["animes, title()"]["en"],
60-
self.texts["cartoons, title()"]["en"],
61-
self.texts["series, title()"]["en"],
62-
self.texts["movies, title()"]["en"],
59+
#self.texts["animes, title()"]["en"],
60+
#self.texts["cartoons, title()"]["en"],
61+
#self.texts["series, title()"]["en"],
62+
#self.texts["movies, title()"]["en"],
6363
#self.texts["videos, title()"]["en"]
6464
]
6565

0 commit comments

Comments
 (0)