Browse Source

A few fixes

- Update the docker build script
- Fix some warnings and formatting with the sitemap
pull/48/head
Steven vanZyl 3 months ago
parent
commit
1bb09f8ffc
3 changed files with 3 additions and 4 deletions
  1. 1
    1
      scripts/docker-build.sh
  2. 1
    3
      src/handlers.rs
  3. 1
    0
      src/main.rs

+ 1
- 1
scripts/docker-build.sh View File

@@ -11,4 +11,4 @@ if id -nG $(whoami) | grep -qw "docker"; then
11 11
     SUDO=""
12 12
 fi
13 13
 
14
-eval "${SUDO} docker build --rm --squash -t rcos/observatory .."
14
+eval "${SUDO} docker build --rm -t rcos/observatory .."

+ 1
- 3
src/handlers.rs View File

@@ -59,11 +59,9 @@ pub fn dashboard(conn: ObservDbConn, l: UserGuard) -> DashboardTemplate {
59 59
 /// GET handler for `/sitemap`
60 60
 #[get("/sitemap")]
61 61
 pub fn sitemap() -> SitemapTemplate {
62
-    SitemapTemplate {
63
-    }
62
+    SitemapTemplate {}
64 63
 }
65 64
 
66
-
67 65
 // The access point for rust-embed.
68 66
 // For some reason it doesn't like having doc-comments on it.
69 67
 #[derive(RustEmbed)]

+ 1
- 0
src/main.rs View File

@@ -86,6 +86,7 @@ fn main() {
86 86
                 staticfile,
87 87
                 favicon,
88 88
                 dashboard,
89
+                sitemap,
89 90
                 // Calendar
90 91
                 calendar,
91 92
                 calendar_json,

Loading…
Cancel
Save