Skip to content

Commit

Permalink
allow meter to have more than 1000kwh
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Nov 26, 2023
1 parent a0812cc commit 25baffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vwsfriend/vwsfriend/ui/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ class ChargingSessionEditForm(FlaskForm):
position_latitude = DecimalField('Position Latitude', places=10, validators=[Optional(), NumberRange(min=-90, max=90)])
position_longitude = DecimalField('Position Longitude', places=10, validators=[Optional(), NumberRange(min=-180, max=180)])
charger_id = SelectField("Charger", validators=[Optional()])
meterStart_kWh = DecimalField('Meter start value (kWh)', places=4, validators=[Optional(), NumberRange(min=0, max=1000)])
meterEnd_kWh = DecimalField('Meter end value (kWh)', places=4, validators=[Optional(), NumberRange(min=0, max=1000)])
meterStart_kWh = DecimalField('Meter start value (kWh)', places=4, validators=[Optional(), NumberRange(min=0, max=999999)])
meterEnd_kWh = DecimalField('Meter end value (kWh)', places=4, validators=[Optional(), NumberRange(min=0, max=999999)])
pricePerKwh_ct = DecimalField('Price per kWh', places=4, validators=[Optional(), NumberRange(min=0, max=1000)])
pricePerMinute_ct = DecimalField('Price per Minute', places=4, validators=[Optional(), NumberRange(min=0, max=1000)])
pricePerSession_ct = DecimalField('Price per Session', places=4, validators=[Optional(), NumberRange(min=0, max=1000)])
Expand Down

0 comments on commit 25baffd

Please sign in to comment.