瀏覽代碼

Fixed lastcallers title. Added more groups.

root 3 年之前
父節點
當前提交
d246ed8c74
共有 1 個文件被更改,包括 16 次插入1 次删除
  1. 16 1
      messages.py

+ 16 - 1
messages.py

@@ -63,6 +63,17 @@ bases = {
     "FSXNET-Magicka": "fsx_mag",
     "FSXNET-Mystic": "fsx_mys",
     "FSXNET-Enigma": "fsx_eng",
+    "FSXNET-Gaming": "fsx_gaming",
+    "FSXNET-Space & Astronomy": "fsx_space",
+    "FSXNET-Sports": "fsx_sports",
+    "FSXNET-Retro Computing": "fsx_retro",
+    "FSXNET-Transport": "fsx_transport",
+    "FSXNET-Video": "fsx_video",
+    "FSXNET-Music": "fsx_music",
+    "FSXNET-Do It Yourself": "fsx_diy",
+    "FSXNET-Food": "fsx_food",
+    "FSXNET-Gardening": "fsx_gardening",
+    "FSXNET-Arts": "fsx_arts",
     "FSXNET-Data": "fsx_dat",
     # "HappyNet-General": "msgs/hpy_gen",
 }
@@ -108,6 +119,9 @@ def bbs_message(area, msgno):
         (msgno,),
     )
     row = dbc.fetchone()
+    if (not row):
+        return
+
     stamp = pendulum.parse(row[4]).timestamp()
 
     data = {
@@ -369,7 +383,8 @@ def display_lastcallers():
     users=last_bbs_callers()
     return render_template(
         "lastcallers.html",
-        users=users
+        users=users,
+        title="Last Callers"
     )