feat(SRC): :rocket: Add more information into prints
Browse files
app.py
CHANGED
@@ -104,16 +104,19 @@ def calcular_macros(esfuerzo_dieta, objetivo, cumplimiento_entrenamiento,
|
|
104 |
|
105 |
# Print matches
|
106 |
print(f"Matches ({num_matches})")
|
107 |
-
for
|
108 |
-
print(f"\t{
|
|
|
|
|
|
|
109 |
|
110 |
# Find macros that match dates of users
|
111 |
-
macros_differences_list = find_macros_that_match_dates_of_users(matches_dict)
|
112 |
|
113 |
# Print macros
|
114 |
-
print(f"Diferencia de macros ({len(
|
115 |
-
for macros_difference in
|
116 |
-
print(f"\t{macros_difference}")
|
117 |
|
118 |
# Calculate macros min, max and mean
|
119 |
if len(macros_differences_list) > 0:
|
|
|
104 |
|
105 |
# Print matches
|
106 |
print(f"Matches ({num_matches})")
|
107 |
+
for user, dates in matches_dict.items():
|
108 |
+
print(f"\t{user}", end=" --> ")
|
109 |
+
for date in dates:
|
110 |
+
print(f"{date}", end=", ")
|
111 |
+
print()
|
112 |
|
113 |
# Find macros that match dates of users
|
114 |
+
macros_differences_list, macros_differences_dict = find_macros_that_match_dates_of_users(matches_dict)
|
115 |
|
116 |
# Print macros
|
117 |
+
print(f"Diferencia de macros ({len(macros_differences_dict)}):")
|
118 |
+
for user, macros_difference in macros_differences_dict.items():
|
119 |
+
print(f"\t{user} --> fecha de match: {macros_difference['date_of_match']}, fecha de asignaci贸n de macros: {macros_difference['date_of_macros_asignation']}, d铆as entre match y asignaci贸n: {macros_difference['days_between_match_and_macros_asignation']}, diferencia de macros: {macros_difference['macros_difference']}")
|
120 |
|
121 |
# Calculate macros min, max and mean
|
122 |
if len(macros_differences_list) > 0:
|