Compare commits
7 commits
copilot/su
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32b0f8002d | ||
|
|
a620d42ed8 | ||
|
|
d1fd1fd762 | ||
|
|
cbc2806f1b | ||
|
|
c91e692be2 | ||
|
|
a1ee33231d | ||
|
|
f971e298c6 |
3 changed files with 3 additions and 5 deletions
|
|
@ -576,7 +576,8 @@ def fuel_records(vehicle_id):
|
||||||
distance=distance,
|
distance=distance,
|
||||||
fuel_economy=fuel_economy,
|
fuel_economy=fuel_economy,
|
||||||
unit=data.get('unit', 'MPG'),
|
unit=data.get('unit', 'MPG'),
|
||||||
notes=data.get('notes')
|
notes=data.get('notes'),
|
||||||
|
document_path=data.get('document_path')
|
||||||
)
|
)
|
||||||
db.session.add(record)
|
db.session.add(record)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
@ -865,6 +866,7 @@ def service_record_operations(vehicle_id, record_id):
|
||||||
record.category = data.get('category', record.category)
|
record.category = data.get('category', record.category)
|
||||||
record.cost = data.get('cost', record.cost)
|
record.cost = data.get('cost', record.cost)
|
||||||
record.notes = data.get('notes', record.notes)
|
record.notes = data.get('notes', record.notes)
|
||||||
|
record.document_path = data.get('document_path', record.document_path)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
return jsonify({'message': 'Service record updated successfully'})
|
return jsonify({'message': 'Service record updated successfully'})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
masina-dock:
|
masina-dock:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
masina-dock:
|
masina-dock:
|
||||||
image: ghcr.io/aiulian25/masina-dock:latest
|
image: ghcr.io/aiulian25/masina-dock:latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue