We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a5aeb commit 14731a4Copy full SHA for 14731a4
fplus-http-server/src/router/allocator.rs
@@ -47,8 +47,8 @@ pub async fn create_from_json(file: web::Json<ChangedAllocator>) -> actix_web::R
47
};
48
49
let owner_repo_parts: Vec<&str> = model.application.allocation_bookkeeping.split('/').collect();
50
- let owner = parts[3];
51
- let repo = parts[4];
+ let owner = parts[owner_repo_parts.len() - 2];
+ let repo = parts[owner_repo_parts.len() - 1];
52
53
let allocator_model = match allocators_db::create_or_update_allocator(
54
owner.to_string(),
0 commit comments