From 9c9b090af497042d1a90ada41ca8fce43ca8d014 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 4 Oct 2024 22:06:27 -0700 Subject: [PATCH] make other list nice --- etc/report_generator.py | 13 +++++++++++-- etc/report_generator5.py | 11 ++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/etc/report_generator.py b/etc/report_generator.py index 8c8df5c..8878f75 100644 --- a/etc/report_generator.py +++ b/etc/report_generator.py @@ -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'
  • {bbsdm[i]}
  • ' + 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, diff --git a/etc/report_generator5.py b/etc/report_generator5.py index b09c216..be72a0e 100644 --- a/etc/report_generator5.py +++ b/etc/report_generator5.py @@ -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'
  • {bbsdm[i]}
  • ' + 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,