This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [[ $# -ne 1 ]]; then | |
| echo "Usage: $0 <image>" | |
| echo "Example: $0 806377085208.dkr.ecr.eu-central-1.amazonaws.com/my-repo:latest" | |
| exit 1 | |
| fi | |
| IMAGE="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| from typing import Dict, Any, List, Optional | |
| def get_invocation_message(item: Dict[str, Any]) -> Optional[str]: | |
| """Safely extracts invocation message whether it's a string or dict.""" | |
| invocation_msg_data = item.get("invocationMessage") | |
| if not invocation_msg_data: | |
| return None | |
| if isinstance(invocation_msg_data, str): | |
| return invocation_msg_data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group: Relazioni Basi di dati | |
| description: Relazioni Basi di dati UNIPV 2021 | |
| dipart = { | |
| NUM_DIPART, NOME_DIPART, CITTA | |
| 10, 'DIREZIONE', 'ROMA' | |
| 11, 'PIANIFICAZIONE', 'ROMA' | |
| 15, 'SICUREZZA', 'FIRENZE' | |
| 20, 'RICERCHE', 'FIRENZE' |