diff --git a/shcloud.py b/shcloud.py index b6917c1..246d2e0 100755 --- a/shcloud.py +++ b/shcloud.py @@ -74,16 +74,16 @@ def select_servertype(): table.add_column("Memory", justify="left", style="red", no_wrap=True) table.add_column("Disk", justify="left", style="blue", no_wrap=True) #table.add_column("Storage Type", justify="center", style="blue", no_wrap=True) - #table.add_column("CPU Type", justify="center", style="cyan2", no_wrap=True) + table.add_column("CPU Type", justify="center", style="cyan2", no_wrap=True) #table.add_column("Deprecated", justify="center", style="grey46", no_wrap=True) table.add_column("Hourly", justify="left", style="cyan2", no_wrap=True) table.add_column("Monthly", justify="left", style="cyan2", no_wrap=True) for m in models: - if str(m.cpu_type) == "shared": - table.add_row(str(m.id), str(m.name), str(m.description), str(m.cores), str(int(m.memory)) + " GB", str(m.disk) + " GB", format(float(m.prices[0]["price_hourly"]["gross"]), '.2f') + " €", format(float(m.prices[0]["price_monthly"]["gross"]), '.2f') + " €") + #if str(m.cpu_type) == "shared": + table.add_row(str(m.id), str(m.name), str(m.description), str(m.cores), str(int(m.memory)) + " GB", str(m.disk) + " GB", str(m.cpu_type) , format(float(m.prices[0]["price_hourly"]["gross"]), '.2f') + " €", format(float(m.prices[0]["price_monthly"]["gross"]), '.2f') + " €") console.print(table) - return(Prompt.ask("Selection: ", default="cpx31")) + return(Prompt.ask("Selection: ", default="ccx22")) def track_progress(a_id, description): with Progress() as progress: