make other list nice

This commit is contained in:
SpudGunMan
2024-10-04 22:06:27 -07:00
parent 53e4e0c59b
commit 9c9b090af4
2 changed files with 21 additions and 3 deletions
+11 -2
View File
@@ -333,14 +333,23 @@ def get_database_info():
print(f"Error with database: {str(e)}")
pass
# pretty print the bbsdm
prettyBBSdm = ""
try:
for i in range(len(bbsdm)):
prettyBBSdm += f'<li>{bbsdm[i]}</li>'
except Exception as e:
print(f"Error with database: {str(e)}")
pass
except Exception as e:
print(f"Error with database: {str(e)}")
pass
return {
'database': "N/A",
"bbsdb": bbsdb,
"bbsdm": bbsdm,
"bbsdb": prettyBBSdb,
"bbsdm": prettyBBSdm,
'lemon_score': lemon_score,
'dopewar_score': dopewar_score,
'blackjack_score': blackjack_score,
+10 -1
View File
@@ -343,6 +343,15 @@ def get_database_info():
print(f"Error with database: {str(e)}")
pass
# pretty print the bbsdm
prettyBBSdm = ""
try:
for i in range(len(bbsdm)):
prettyBBSdm += f'<li>{bbsdm[i]}</li>'
except Exception as e:
print(f"Error with database: {str(e)}")
pass
except Exception as e:
print(f"Error with database: {str(e)}")
pass
@@ -350,7 +359,7 @@ def get_database_info():
return {
'database': "N/A",
"bbsdb": prettyBBSdb,
"bbsdm": bbsdm,
"bbsdm": prettyBBSdm,
'lemon_score': lemon_score,
'dopewar_score': dopewar_score,
'blackjack_score': blackjack_score,