Skip to content

Commit

Permalink
fix: fixed update_app_states call (frappe#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aradhya-Tripathi committed Jun 22, 2022
1 parent 28549ff commit 45267fc
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def get_ssh_url(self):

@functools.lru_cache(maxsize=None)
class App(AppMeta):
def __init__(self, name: str, branch: str = None, bench: "Bench" = None, soft_link : bool = False, *args, **kwargs):
def __init__(
self,
name: str,
branch: str = None,
bench: "Bench" = None,
soft_link: bool = False,
*args,
**kwargs,
):
self.bench = bench
self.soft_link = soft_link
self.required_by = None
Expand Down Expand Up @@ -257,9 +265,14 @@ def _get_dependencies(self):

def update_app_state(self):
from bench.bench import Bench

bench = Bench(self.bench.name)
bench.apps.sync(app_dir=self.app_name, app_name=self.name,
branch=self.tag, required_list=self.local_resolution)
bench.apps.sync(
app_dir=self.app_name,
app_name=self.name,
branch=self.tag,
required=self.local_resolution,
)



Expand Down

0 comments on commit 45267fc

Please sign in to comment.