readd dedicated servers to list and standard select ccx32

This commit is contained in:
Aaron Riedel 2022-08-25 15:49:59 +02:00
parent 390ea78993
commit 3958d4b5b3
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -74,16 +74,16 @@ def select_servertype():
table.add_column("Memory", justify="left", style="red", no_wrap=True) 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("Disk", justify="left", style="blue", no_wrap=True)
#table.add_column("Storage Type", justify="center", 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("Deprecated", justify="center", style="grey46", no_wrap=True)
table.add_column("Hourly", justify="left", style="cyan2", 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) table.add_column("Monthly", justify="left", style="cyan2", no_wrap=True)
for m in models: for m in models:
if str(m.cpu_type) == "shared": #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') + "") 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) console.print(table)
return(Prompt.ask("Selection: ", default="cpx31")) return(Prompt.ask("Selection: ", default="ccx22"))
def track_progress(a_id, description): def track_progress(a_id, description):
with Progress() as progress: with Progress() as progress: