add modal func
This commit is contained in:
32
app.py
32
app.py
@@ -132,8 +132,6 @@ def updateduplicate():
|
||||
aud = request.form.get('auditory_dubl')
|
||||
|
||||
|
||||
|
||||
|
||||
@app.route('/vneaud', methods=['GET', 'POST'])
|
||||
def vneaud():
|
||||
res = []
|
||||
@@ -180,6 +178,36 @@ def zamsearch():
|
||||
for item in searchedZam:
|
||||
zam.append([item.txtzam, item.created_date])
|
||||
return render_template('zametki.html', zam=zam)
|
||||
|
||||
|
||||
@app.route('/addraspved', methods=['GET', 'POST'])
|
||||
def addraspved():
|
||||
if request.method == 'POST':
|
||||
query_string = request.data
|
||||
# Convert the bytes object to a string
|
||||
query_string_str = query_string.decode("utf-8")
|
||||
|
||||
# Split the query string by '&' to get individual key-value pairs
|
||||
key_value_pairs = query_string_str.split("&")
|
||||
|
||||
# Create a dictionary to store the key-value pairs
|
||||
query_dict = {}
|
||||
for pair in key_value_pairs:
|
||||
key, value = pair.split("=")
|
||||
query_dict[key] = value
|
||||
|
||||
# Retrieve the values for specific keys
|
||||
rasp_value = query_dict.get("rasp")
|
||||
ved_value = query_dict.get("ved")
|
||||
|
||||
print(f"Value for 'rasp': {rasp_value}")
|
||||
print(f"Value for 'ved': {ved_value}")
|
||||
|
||||
|
||||
|
||||
return jsonify({'success': True}, 200, {'ContentType': 'application/json'})
|
||||
|
||||
|
||||
# ==================================================================================
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user