Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/utils.py
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | return { | ||||
"swh_web_staging": any( | "swh_web_staging": any( | ||||
[ | [ | ||||
server_name in site_base_url | server_name in site_base_url | ||||
for server_name in config["staging_server_names"] | for server_name in config["staging_server_names"] | ||||
] | ] | ||||
), | ), | ||||
"swh_web_version": get_distribution("swh.web").version, | "swh_web_version": get_distribution("swh.web").version, | ||||
"visit_types": ORIGIN_VISIT_TYPES, | "visit_types": ORIGIN_VISIT_TYPES, | ||||
"iframe_mode": False, | |||||
} | } | ||||
def resolve_branch_alias( | def resolve_branch_alias( | ||||
snapshot: Dict[str, Any], branch: Optional[Dict[str, Any]] | snapshot: Dict[str, Any], branch: Optional[Dict[str, Any]] | ||||
) -> Optional[Dict[str, Any]]: | ) -> Optional[Dict[str, Any]]: | ||||
""" | """ | ||||
Resolve branch alias in snapshot content. | Resolve branch alias in snapshot content. | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |