Paste #136907

   
pasted on 25.06.2020 18:27
  • Edit to this paste
  • Print
  • Raw
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Плохо
return render_template("index.html", form = data, goals = goals, id_list = id_list)

variableName = ...

date_time = week_days[request.form["clientWeekday"]] + ", " + request.form["clientTime"]


# Хорошо
return render_template("index.html", form=data, goals=goals, id_list=id_list)

variable_name = ...


week_days = week_days[request.form["clientWeekday"]] 
some_var =  request.form["clientTime"]
date_time = f"{week_days} {some_var}"
Add Comment
Author