fix linting issues
This commit is contained in:
parent
11c8d07549
commit
1bd1beb694
@ -884,7 +884,7 @@ def edit_user_preferences(auth_user: User) -> Union[Dict, HttpResponse]:
|
|||||||
:<json boolean display_ascent: display highest ascent records and total
|
:<json boolean display_ascent: display highest ascent records and total
|
||||||
:<json boolean imperial_units: display distance in imperial units
|
:<json boolean imperial_units: display distance in imperial units
|
||||||
:<json string language: language preferences
|
:<json string language: language preferences
|
||||||
:<json boolean start_elevation_at_zero: should elevation plots start at zero by default?
|
:<json boolean start_elevation_at_zero: do elevation plots start at zero?
|
||||||
:<json string timezone: user time zone
|
:<json string timezone: user time zone
|
||||||
:<json boolean weekm: does week start on Monday?
|
:<json boolean weekm: does week start on Monday?
|
||||||
|
|
||||||
|
@ -59,7 +59,9 @@ class User(BaseModel):
|
|||||||
confirmation_token = db.Column(db.String(255), nullable=True)
|
confirmation_token = db.Column(db.String(255), nullable=True)
|
||||||
display_ascent = db.Column(db.Boolean, default=True, nullable=False)
|
display_ascent = db.Column(db.Boolean, default=True, nullable=False)
|
||||||
accepted_policy_date = db.Column(db.DateTime, nullable=True)
|
accepted_policy_date = db.Column(db.DateTime, nullable=True)
|
||||||
start_elevation_at_zero = db.Column(db.Boolean, default=True, nullable=False)
|
start_elevation_at_zero = db.Column(
|
||||||
|
db.Boolean, default=True, nullable=False
|
||||||
|
)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f'<User {self.username!r}>'
|
return f'<User {self.username!r}>'
|
||||||
|
Loading…
Reference in New Issue
Block a user