hydraveil-gui/gui/v2/actions/sync_result.py
2026-07-08 15:38:23 -04:00

10 lines
367 B
Python
Executable file

def is_valid_sync_payload(available_locations, available_browsers, status, locations, all_browsers):
if status is not True:
return False
if isinstance(all_browsers, bool):
return False
if not available_locations or not available_browsers:
return False
if not locations or not all_browsers:
return False
return True