Skip to content

Commit

Permalink
NXDRIVE-2942: Improve folder selection on Direct Transfer screen --re…
Browse files Browse the repository at this point in the history
…moved trashed folders
  • Loading branch information
gitofanindya committed Sep 11, 2024
1 parent baf12b7 commit 68e20ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nxdrive/gui/folders_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,7 @@ def _get_personal_space(self) -> "Document":
def get_roots(self) -> List[Any]:
from ..constants import QUERY_ENDPOINT

Check warning on line 283 in nxdrive/gui/folders_model.py

View check run for this annotation

Codecov / codecov/patch

nxdrive/gui/folders_model.py#L283

Added line #L283 was not covered by tests

url = (
f"{QUERY_ENDPOINT}select * from Document WHERE ecm:mixinType = 'Folderish'"
)
url = f"{QUERY_ENDPOINT}select * from Document WHERE ecm:mixinType = 'Folderish' and ecm:isTrashed = 0"
return self.remote.client.request("GET", url).json()["entries"]

Check warning on line 286 in nxdrive/gui/folders_model.py

View check run for this annotation

Codecov / codecov/patch

nxdrive/gui/folders_model.py#L285-L286

Added lines #L285 - L286 were not covered by tests

def _get_root_folders(self) -> List["Documents"]:
Expand Down

0 comments on commit 68e20ab

Please sign in to comment.