diff --git a/etc/report_generator.py b/etc/report_generator.py
index 271c91c..8c8df5c 100644
--- a/etc/report_generator.py
+++ b/etc/report_generator.py
@@ -315,14 +315,23 @@ def get_database_info():
with open('../golfsim_hs.pkl', 'rb') as f:
golfsim_score = pickle.load(f)
f.close()
+
+ with open('../bbsdm.pkl', 'rb') as f:
+ bbsdm = pickle.load(f)
+ f.close()
with open('../bbsdb.pkl', 'rb') as f:
bbsdb = pickle.load(f)
f.close()
- with open('../bbsdm.pkl', 'rb') as f:
- bbsdm = pickle.load(f)
- f.close()
+ # pretty print the bbsdb
+ prettyBBSdb = ""
+ try:
+ for i in range(len(bbsdb)):
+ prettyBBSdb += f'
{bbsdb[i]}'
+ except Exception as e:
+ print(f"Error with database: {str(e)}")
+ pass
except Exception as e:
print(f"Error with database: {str(e)}")
diff --git a/etc/report_generator5.py b/etc/report_generator5.py
index effa3a1..b09c216 100644
--- a/etc/report_generator5.py
+++ b/etc/report_generator5.py
@@ -326,13 +326,22 @@ def get_database_info():
golfsim_score = pickle.load(f)
f.close()
+ with open('../bbsdm.pkl', 'rb') as f:
+ bbsdm = pickle.load(f)
+ f.close()
+
with open('../bbsdb.pkl', 'rb') as f:
bbsdb = pickle.load(f)
f.close()
- with open('../bbsdm.pkl', 'rb') as f:
- bbsdm = pickle.load(f)
- f.close()
+ # pretty print the bbsdb
+ prettyBBSdb = ""
+ try:
+ for i in range(len(bbsdb)):
+ prettyBBSdb += f'{bbsdb[i]}'
+ except Exception as e:
+ print(f"Error with database: {str(e)}")
+ pass
except Exception as e:
print(f"Error with database: {str(e)}")
@@ -340,7 +349,7 @@ def get_database_info():
return {
'database': "N/A",
- "bbsdb": bbsdb,
+ "bbsdb": prettyBBSdb,
"bbsdm": bbsdm,
'lemon_score': lemon_score,
'dopewar_score': dopewar_score,
@@ -937,7 +946,6 @@ options: {