@click.command()
def main():
    'Update SMARTER database statuses'
    logger.info(f'{Path(__file__).name} started')
    try:
        database = SmarterInfo.objects.get(id='smarter')
        logger.debug(f'Found: {database}')
    except DoesNotExist:
        logger.warning('Smarter database status was never tracked')
        database = SmarterInfo(id='smarter')
    database.version = __version__
    database.working_assemblies = WORKING_ASSEMBLIES
    database.plink_specie_opt = PLINK_SPECIES_OPT
    database.last_updated = datetime.datetime.now()
    database.save()
    logger.info('Database status updated')
    logger.info(f'{Path(__file__).name} ended')
Update SMARTER database statuses
@click.command()
def main():
    
    logger.info(f'{Path(__file__).name} started')
    try:
        database = SmarterInfo.objects.get(id='smarter')
        logger.debug(f'Found: {database}')
    except DoesNotExist:
        logger.warning('Smarter database status was never tracked')
        database = SmarterInfo(id='smarter')
    database.version = __version__
    database.working_assemblies = WORKING_ASSEMBLIES
    database.plink_specie_opt = PLINK_SPECIES_OPT
    database.last_updated = datetime.datetime.now()
    database.save()
    logger.info('Database status updated')
    logger.info(f'{Path(__file__).name} ended')