relocate assets to coding

pull/38/head
Superag 2023-05-09 16:24:49 -07:00
parent e7619000bf
commit ba2a287d05
1 changed files with 7 additions and 0 deletions

View File

@ -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):