()
| 249 | app.url_map.converters['b64'] = Base64Converter |
| 250 | |
| 251 | def get_dataset(): |
| 252 | if not hasattr(g, 'dataset'): |
| 253 | dataset_key = session.get('dataset') |
| 254 | if dataset_key is None or dataset_key not in datasets: |
| 255 | dataset_key = list(datasets)[0] |
| 256 | session['dataset'] = dataset_key |
| 257 | g.dataset = datasets[dataset_key] |
| 258 | return g.dataset |
| 259 | |
| 260 | # |
| 261 | # Flask views. |
no outgoing calls
no test coverage detected