relocate assets to coding
parent
e7619000bf
commit
ba2a287d05
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue