From ba2a287d055682456830bfac04c0a77bd2abc312 Mon Sep 17 00:00:00 2001 From: Superag Date: Tue, 9 May 2023 16:24:49 -0700 Subject: [PATCH] relocate assets to coding --- scripts/runtime/msai_runtime.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/runtime/msai_runtime.py b/scripts/runtime/msai_runtime.py index eff5490..af13159 100644 --- a/scripts/runtime/msai_runtime.py +++ b/scripts/runtime/msai_runtime.py @@ -829,12 +829,19 @@ class MiaoshouRuntime(object): update_status = 'latest' show_update = False repo = git.Repo(self.prelude.ext_folder) + asset_repo = git.Repo(self.prelude.asset_folder) for fetch in repo.remote().fetch(dry_run=True): if fetch.flags != fetch.HEAD_UPTODATE: show_update = True update_status = "behind" break + for fetch in asset_repo.remote().fetch(dry_run=True): + if fetch.flags != fetch.HEAD_UPTODATE: + show_update = True + update_status = "behind" + break + return gr.Markdown.update(visible=True, value=update_status), gr.Checkbox.update(visible=show_update), gr.Button.update(visible=show_update) def update_program(self, dont_update_ms=False):