Tweak default letter names (no space).
This commit is contained in:
parent
05ab019901
commit
20a0c7b2e7
|
@ -140,7 +140,7 @@ def add_letter() -> Response:
|
|||
user = db.get_user(email_address)
|
||||
|
||||
existing_letter_count = len(db.get_user_letters(user.id))
|
||||
new_letter_name = f'Letter {existing_letter_count + 1}'
|
||||
new_letter_name = f'Letter{existing_letter_count + 1}'
|
||||
default_form_json = jsonify(CLForm().to_cl_data()).get_data(True)
|
||||
db.add_letter(user.id, new_letter_name, default_form_json)
|
||||
return redirect(f'/?letter_name={new_letter_name}')
|
||||
|
|
Loading…
Reference in New Issue