Skip to content
Extraits de code Groupes Projets
Valider fde13a50 rédigé par Miryuni's avatar Miryuni
Parcourir les fichiers

Green colors when updated

parent a847bf0f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -42,10 +42,13 @@ elif sticker_index == 0:
else:
json_pack['stickers'][sticker_index-1]['body'] = new_body
# Print the body of all the stickers
print(Fore.GREEN + 'Updated!')
print(Fore.GREEN + 'Updated!'+ Style.RESET_ALL)
print("New sticker pack:")
for i in range(nb_stickers):
print("\t "+str(i+1) + ". " + json_pack['stickers'][i]['body'])
if i == sticker_index-1:
print("\t "+Fore.GREEN+str(i+1) + ". " + json_pack['stickers'][i]['body']+Style.RESET_ALL)
else:
print("\t "+str(i+1) + ". " + json_pack['stickers'][i]['body'])
out_file = open(sys.argv[1], 'w')
json.dump(json_pack, out_file, indent = 3)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter