Private
Public Access
1
0

checking name length and truncating

This commit is contained in:
Sander Roosendaal
2020-03-01 12:00:01 +01:00
parent 5477d8b1da
commit e68b588262

View File

@@ -1272,6 +1272,10 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
message = "Warning: This workout overlaps with an existing one and was marked as a duplicate"
duplicate = True
# test title length
if len(title)>149:
title = title[0:149]
w = Workout(user=r, name=title, date=workoutdate,
workouttype=workouttype,