Quellcode durchsuchen

Fix name in cargo

vkbychkov vor 8 Monaten
Ursprung
Commit
cbea798a90
3 geänderte Dateien mit 23 neuen und 23 gelöschten Zeilen
  1. 20 20
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 2 2
      api/src/lib.rs

+ 20 - 20
Cargo.lock

@@ -378,26 +378,6 @@ version = "1.6.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
 
-[[package]]
-name = "basic_orm_cli_crud"
-version = "0.1.0"
-dependencies = [
- "futures",
- "poem",
- "rand",
- "redis",
- "sea-orm",
- "sea-orm-cli",
- "serde",
- "serde_json",
- "shit-post-db",
- "shit-post-web-api",
- "telegram-bot",
- "tera",
- "tokio",
- "tracing-subscriber",
-]
-
 [[package]]
 name = "bigdecimal"
 version = "0.3.1"
@@ -2837,6 +2817,26 @@ dependencies = [
  "tracing-subscriber",
 ]
 
+[[package]]
+name = "shitpost_bot"
+version = "0.1.0"
+dependencies = [
+ "futures",
+ "poem",
+ "rand",
+ "redis",
+ "sea-orm",
+ "sea-orm-cli",
+ "serde",
+ "serde_json",
+ "shit-post-db",
+ "shit-post-web-api",
+ "telegram-bot",
+ "tera",
+ "tokio",
+ "tracing-subscriber",
+]
+
 [[package]]
 name = "signature"
 version = "2.2.0"

+ 1 - 1
Cargo.toml

@@ -1,5 +1,5 @@
 [package]
-name = "basic_orm_cli_crud"
+name = "shitpost_bot"
 version = "0.1.0"
 edition = "2021"
 

+ 2 - 2
api/src/lib.rs

@@ -90,9 +90,9 @@ pub async fn index(state: Data<&AppState>) -> Result<impl IntoResponse> {
 pub async fn shitpost_view(state: Data<&AppState>) -> Result<impl IntoResponse> {
     let mut ctx = tera::Context::new();
 
-    
 
-    ctx.insert("table_head", vec!["id", "title", ""]);
+
+    ctx.insert("table_head", &vec!["id", "title", ""]);
     let body = state
         .templates
         .render("add_shitpost.html.tera", &ctx)