(config)
| 414 | return None |
| 415 | |
| 416 | def get_build_time(config) -> str: |
| 417 | if config['IN_DOCKER']: |
| 418 | docker_build_end_time = Path('/VERSION.txt').read_text().rsplit('BUILD_END_TIME=')[-1].split('\n', 1)[0] |
| 419 | return docker_build_end_time |
| 420 | |
| 421 | src_last_modified_unix_timestamp = (config['PACKAGE_DIR'] / 'config.py').stat().st_mtime |
| 422 | return datetime.fromtimestamp(src_last_modified_unix_timestamp).strftime('%Y-%m-%d %H:%M:%S %s') |
| 423 | |
| 424 | def get_versions_available_on_github(config): |
| 425 | """ |