quick fix to prod
This commit is contained in:
@@ -220,10 +220,10 @@ func (h *CVHandler) ExportPDF(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
length := r.URL.Query().Get("length")
|
||||
if length == "" {
|
||||
length = "detailed"
|
||||
length = "short"
|
||||
}
|
||||
if length != "detailed" && length != "extended" {
|
||||
HandleError(w, r, BadRequestError("Unsupported length. Use 'detailed' or 'extended'"))
|
||||
if length != "short" && length != "extended" {
|
||||
HandleError(w, r, BadRequestError("Unsupported length. Use 'short' or 'extended'"))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -288,8 +288,8 @@ func (h *CVHandler) ExportPDF(w http.ResponseWriter, r *http.Request) {
|
||||
// Format: cv-{length}[-{version}]-{initials}-{year}-{lang}.pdf
|
||||
// Note: {version} is OMITTED when it's "clean"
|
||||
// Examples:
|
||||
// - cv-detailed-jamr-2025-es.pdf (clean version, no skills)
|
||||
// - cv-detailed-with_skills-jamr-2025-es.pdf (with skills sidebar)
|
||||
// - cv-short-jamr-2025-es.pdf (clean version, no skills)
|
||||
// - cv-short-with_skills-jamr-2025-es.pdf (with skills sidebar)
|
||||
// - cv-extended-jamr-2025-en.pdf (clean version, no skills)
|
||||
// - cv-extended-with_skills-jamr-2025-en.pdf (with skills sidebar)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user