From 066a37794745ab3443a34969cd26c0bacc5b2b0c Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 11 Aug 2025 05:08:45 +0800 Subject: [PATCH] Adjust time order --- src/chsrc-main.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index d33b4fe..f6ed771 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -406,6 +406,12 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name) printf ("\n"); } + if (target->created_on) + { + char *msg = ENGLISH ? "Recipe Created On: " : "食谱创建时间: "; + printf ("%s%s\n", bdblue(msg), target->created_on); + } + { char *msg = ENGLISH ? "Current Chef: " : "当前主厨: "; @@ -465,11 +471,10 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name) } } - - if (target->created_on) + if (target->sources_last_updated) { - char *msg = ENGLISH ? "Recipe Created On: " : "食谱创建时间: "; - printf ("%s%s\n", bdblue(msg), target->created_on); + char *msg = ENGLISH ? "Ingredient(Sources) Last Updated: " : "食源检查时间: "; + printf ("%s%s\n", bdblue(msg), target->sources_last_updated); } if (target->last_updated) @@ -477,12 +482,6 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name) char *msg = ENGLISH ? "Recipe Last Updated: " : "食谱更新时间: "; printf ("%s%s\n", bdblue(msg), target->last_updated); } - - if (target->sources_last_updated) - { - char *msg = ENGLISH ? "Ingredient(Sources) Last Updated: " : "食材(源)检查时间: "; - printf ("%s%s\n", bdblue(msg), target->sources_last_updated); - } }