zmiany ux
This commit is contained in:
3
app.py
3
app.py
@ -303,7 +303,7 @@ def upload_receipt(list_id):
|
||||
file_path = os.path.join(app.config['UPLOAD_FOLDER'], f"list_{list_id}_{filename}")
|
||||
|
||||
img = Image.open(file)
|
||||
img.thumbnail((800, 800))
|
||||
img.thumbnail((2000, 2000))
|
||||
img.save(file_path)
|
||||
|
||||
flash('Wgrano paragon', 'success')
|
||||
@ -319,6 +319,7 @@ def uploaded_file(filename):
|
||||
response.headers.pop('Pragma', None)
|
||||
return response
|
||||
|
||||
# chyba do usuniecia przeniesione na eventy socket.io
|
||||
@app.route('/update-note/<int:item_id>', methods=['POST'])
|
||||
def update_note(item_id):
|
||||
item = Item.query.get_or_404(item_id)
|
||||
|
Reference in New Issue
Block a user